Compare commits

..

6 commits

Author SHA1 Message Date
42d5fff03e add gitignore 2024-06-28 20:14:31 -07:00
e6a208887f src dir? 2024-06-28 20:13:49 -07:00
67ab805c92 coreutils? 2024-06-28 20:11:48 -07:00
20e3f6a425 system? 2024-06-28 19:41:22 -07:00
2e4ba223d8 nixpkgs-unstable 2024-06-28 19:40:26 -07:00
6c3cbb5613 flake? 2024-06-28 19:39:03 -07:00
4 changed files with 59 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
result/

3
builder.sh Executable file
View file

@ -0,0 +1,3 @@
export PATH="$coreutils/bin"
mkdir $out
cp $src/*\.{png,webp} $out

27
flake.lock Normal file
View 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
View 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 = ./.;
};
});
};
}