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 = {
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue