28 lines
678 B
Nix
28 lines
678 B
Nix
|
{
|
||
|
inputs = {
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }:
|
||
|
flake-utils.lib.eachSystem ["x86_64-linux"] (system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
garbageProj = import ./Cargo.nix { inherit pkgs; };
|
||
|
garbage; = pkgs.lib.recursiveUpdate garbageProj.rootCrate.build {
|
||
|
meta = {
|
||
|
description = "CLI tool to interact with the FreeDesktop trash API.";
|
||
|
mainProgram = "garbage";
|
||
|
};
|
||
|
};
|
||
|
flakePkgs = {
|
||
|
inherit garbage;
|
||
|
};
|
||
|
in
|
||
|
rec {
|
||
|
packages = flake-utils.lib.flattenTree flakePkgs;
|
||
|
defaultPackage = flakePkgs.garbage;
|
||
|
});
|
||
|
}
|
||
|
|
||
|
# vim: set ts=2 sw=2 :
|