{ 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 ''; }; }; }); }