wallpapers/flake.nix
2024-02-27 01:12:39 +01:00

25 lines
636 B
Nix

{ description = "A collection of wallpapers";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils}:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
packages = {
default = pkgs.stdenv.mkDerivation {
pname = "wallpapers";
version = "0.0";
src = ./src;
installPhase = ''
mkdir -p $out
cp -r share $out/
find $out/share/wallpapers -type f > $out/share/wallpapers-list
'';
};
};
});
}