Formatting
This commit is contained in:
parent
b05fbe66c7
commit
5b5c9c3e6e
1 changed files with 28 additions and 18 deletions
46
flake.nix
46
flake.nix
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue