coreutils?

main
Zynh Ludwig 2024-06-28 20:11:48 -07:00
parent 20e3f6a425
commit 67ab805c92
2 changed files with 22 additions and 8 deletions

View File

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

View File

@ -2,13 +2,26 @@
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = outputs =
{ nixpkgs, ... }: { { nixpkgs, ... }:
packages."x86_64-linux".default = derivation let
{ systems = [ "aarch64-linux" "x86_64-linux" ];
name = "backgrounds"; forAllSystems =
builder = "${nixpkgs.bash}/bin/bash"; function:
args = [ ./builder.sh ]; nixpkgs.lib.genAttrs systems (
system = builtins.currentSystem; 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 ];
};
});
}; };
} }