2024-06-29 02:39:03 +00:00
|
|
|
{
|
2024-06-29 02:40:26 +00:00
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-06-29 02:39:03 +00:00
|
|
|
outputs =
|
2024-06-29 03:11:48 +00:00
|
|
|
{ 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 ];
|
2024-06-29 03:13:49 +00:00
|
|
|
src = ./.;
|
2024-06-29 03:11:48 +00:00
|
|
|
};
|
|
|
|
});
|
2024-06-29 02:39:03 +00:00
|
|
|
};
|
|
|
|
}
|