Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If73b2f64914bc4fe934eba44985e34646a6a6964
29 lines
583 B
Nix
29 lines
583 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "konservejo";
|
|
version = "0.1.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 = {
|
|
description = "Forgejo backup service";
|
|
maintainers = with lib.maintainers; [NotAShelf];
|
|
};
|
|
})
|