Formatting

This commit is contained in:
Nox Sluijtman 2025-04-22 18:05:14 +02:00
parent b05fbe66c7
commit 5b5c9c3e6e
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

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