This commit is contained in:
Matthew Deville 2025-08-31 00:54:31 +02:00
parent 8878ee7172
commit 8e027ded55

View file

@ -25,7 +25,6 @@
mold
pkg-config
];
xorgBuildInputs = with pkgs; [
xorg.libX11
xorg.libXcursor
@ -44,11 +43,26 @@
]
++ xorgBuildInputs
++ 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 {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
};
in
{
packages.default = default_package;
devShells.default = mkShell {
inherit buildInputs nativeBuildInputs;