beer/nix/package.nix
NotAShelf 2ccd62ba5e
nix: initial tooling
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5201e2b745fec2d5d6806693b5243d4e6a6a6964
2026-06-23 14:59:09 +03:00

29 lines
559 B
Nix

{
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "beer";
version = "0.0.0";
src = let
fs = lib.fileset;
s = ../.;
in
fs.toSource {
root = s;
fileset = fs.unions [
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /src))
(s + /Cargo.lock)
(s + /Cargo.toml)
];
};
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
enableParallelBuilding = true;
meta = {
maintainers = with lib.maintainers; [NotAShelf];
mainProgram = "beer";
};
})