From 6c3cbb5613b5e6014f4da5eeb1999aea5146292e Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 28 Jun 2024 19:39:03 -0700 Subject: [PATCH] flake? --- builder.sh | 2 ++ flake.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100755 builder.sh create mode 100644 flake.nix diff --git a/builder.sh b/builder.sh new file mode 100755 index 0000000..149e6c2 --- /dev/null +++ b/builder.sh @@ -0,0 +1,2 @@ +mkdir $out +cp *\.{png,webp} $out diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c9197e4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,11 @@ +{ + outputs = + { nixpkgs, ... }: { + packages."x86_64-linux".default = derivation + { + name = "backgrounds"; + builder = "${nixpkgs.bash}/bin/bash"; + args = [ ./builder.sh ]; + }; + }; +}