chore(flake): Add packages.default output
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
29
flake.nix
29
flake.nix
@@ -32,13 +32,36 @@
|
||||
];
|
||||
|
||||
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-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