ncro/nix/package.nix
NotAShelf ea96477830
treewide: rewrite everything in Rust
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I786da853078e1013bb8f463ed9e9869c6a6a6964
2026-05-11 13:28:29 +03:00

30 lines
520 B
Nix

{
lib,
rustPlatform,
pkg-config,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ncro";
version = "1.0.0";
src = let
fs = lib.fileset;
s = ../.;
in
fs.toSource {
root = s;
fileset = fs.unions [
(s + /src)
(s + /Cargo.toml)
(s + /Cargo.lock)
];
};
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
nativeBuildInputs = [pkg-config];
meta = {
mainProgram = "ncro";
maintainers = with lib.maintainers; [NotAShelf];
};
})