garbage/flake.nix

28 lines
678 B
Nix
Raw Normal View History

2021-09-05 09:13:41 +00:00
{
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 :