chore(flake): Add packages.default output
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -32,12 +32,35 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
(lib.hiPrio rust-bin.nightly."2025-07-05".rustfmt)
|
(lib.hiPrio rust-bin.nightly."2025-08-07".rustfmt)
|
||||||
rust-bin.stable.latest.default
|
rust-bin.stable.latest.default
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [ ];
|
packages.default =
|
||||||
|
let
|
||||||
|
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
||||||
|
in
|
||||||
|
with pkgs;
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = manifest.name;
|
||||||
|
version = manifest.version;
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
dbus
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
inherit (manifest) description homepage;
|
||||||
|
license = lib.licenses.gpl3Plus;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user