coreutils?
This commit is contained in:
parent
20e3f6a425
commit
67ab805c92
2 changed files with 22 additions and 8 deletions
|
@ -1,2 +1,3 @@
|
||||||
|
export PATH="$coreutils/bin"
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp *\.{png,webp} $out
|
cp *\.{png,webp} $out
|
||||||
|
|
29
flake.nix
29
flake.nix
|
@ -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 ];
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue