17 lines
471 B
Nix
17 lines
471 B
Nix
{ toolchain, makeRustPlatform, nix-gitignore, installShellFiles }:
|
|
|
|
let rustPlatform = makeRustPlatform { inherit (toolchain) cargo rustc; };
|
|
|
|
in rustPlatform.buildRustPackage {
|
|
name = "garbage";
|
|
|
|
src = nix-gitignore.gitignoreSource [ ./.gitignore ] ./.;
|
|
cargoLock = { lockFile = ./Cargo.lock; };
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
meta = {
|
|
description = "CLI tool to interact with the FreeDesktop trash API.";
|
|
mainProgram = "garbage";
|
|
};
|
|
}
|