Compare commits
6 commits
6ac03f05d1
...
42d5fff03e
Author | SHA1 | Date | |
---|---|---|---|
42d5fff03e | |||
e6a208887f | |||
67ab805c92 | |||
20e3f6a425 | |||
2e4ba223d8 | |||
6c3cbb5613 |
4 changed files with 59 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
result/
|
3
builder.sh
Executable file
3
builder.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
export PATH="$coreutils/bin"
|
||||
mkdir $out
|
||||
cp $src/*\.{png,webp} $out
|
27
flake.lock
Normal file
27
flake.lock
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1719254875,
|
||||
"narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
28
flake.nix
Normal file
28
flake.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, ... }:
|
||||
let
|
||||
systems = [ "aarch64-linux" "x86_64-linux" ];
|
||||
forAllSystems =
|
||||
function:
|
||||
nixpkgs.lib.genAttrs systems (
|
||||
system: function nixpkgs.legacyPackages.${system} system
|
||||
);
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (pkgs: system: rec {
|
||||
default = backgrounds;
|
||||
backgrounds = derivation
|
||||
{
|
||||
inherit system;
|
||||
inherit (pkgs) coreutils;
|
||||
name = "backgrounds";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = [ ./builder.sh ];
|
||||
src = ./.;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue