backgrounds/flake.nix

29 lines
696 B
Nix

{
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 = ./.;
};
});
};
}