2023-12-08 14:20:28 +01:00
|
|
|
{ description = "A collection of wallpapers";
|
|
|
|
inputs = {
|
2024-02-27 01:12:13 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-12-08 14:20:28 +01:00
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
2024-02-27 01:12:13 +01:00
|
|
|
packages = {
|
|
|
|
default = pkgs.stdenv.mkDerivation {
|
2023-12-08 14:20:28 +01:00
|
|
|
pname = "wallpapers";
|
|
|
|
version = "0.0";
|
|
|
|
src = ./src;
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r share $out/
|
2023-12-08 14:24:09 +01:00
|
|
|
find $out/share/wallpapers -type f > $out/share/wallpapers-list
|
2023-12-08 14:20:28 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|