about summary refs log tree commit diff
path: root/pkgs/build-support/substitute/substitute-all.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/substitute/substitute-all.nix')
-rw-r--r--pkgs/build-support/substitute/substitute-all.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/build-support/substitute/substitute-all.nix b/pkgs/build-support/substitute/substitute-all.nix
new file mode 100644
index 000000000000..6c0f970a392a
--- /dev/null
+++ b/pkgs/build-support/substitute/substitute-all.nix
@@ -0,0 +1,9 @@
+{stdenv}:
+
+args:
+
+stdenv.mkDerivation ({
+  name = if args ? name then args.name else baseNameOf (toString args.src);
+  builder = ./substitute-all.sh;
+  inherit (args) src;
+} // args)