wip
This commit is contained in:
parent
8878ee7172
commit
8e027ded55
1 changed files with 15 additions and 1 deletions
16
flake.nix
16
flake.nix
|
|
@ -25,7 +25,6 @@
|
||||||
mold
|
mold
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
xorgBuildInputs = with pkgs; [
|
xorgBuildInputs = with pkgs; [
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xorg.libXcursor
|
xorg.libXcursor
|
||||||
|
|
@ -44,11 +43,26 @@
|
||||||
]
|
]
|
||||||
++ xorgBuildInputs
|
++ xorgBuildInputs
|
||||||
++ waylandBuildInputs;
|
++ waylandBuildInputs;
|
||||||
|
|
||||||
|
# Build target for the binary
|
||||||
|
default_package = pkgs.rustPlatform.buildRustPackage {
|
||||||
|
pname = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.name;
|
||||||
|
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;
|
||||||
|
src = ./.;
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
nativeBuildInputs = nativeBuildInputs;
|
||||||
|
buildInputs = buildInputs;
|
||||||
|
};
|
||||||
|
|
||||||
mkShell = pkgs.mkShell.override {
|
mkShell = pkgs.mkShell.override {
|
||||||
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
|
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
packages.default = default_package;
|
||||||
|
|
||||||
devShells.default = mkShell {
|
devShells.default = mkShell {
|
||||||
inherit buildInputs nativeBuildInputs;
|
inherit buildInputs nativeBuildInputs;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue