about summary refs log tree commit diff
path: root/pkgs/profpatsch/default.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-09-26 03:49:38 +0200
committerProfpatsch <mail@profpatsch.de>2019-09-26 03:51:25 +0200
commit93f5d251eaf7d2944d542281ae6e54ccfa306fd0 (patch)
treeae5857e1cfd779207cacc14d2c68ad1de1a8eb25 /pkgs/profpatsch/default.nix
parent61dda874aab6fe77d3d71eb4845ba3717e9c80d2 (diff)
pkgs/profpatsch/runExecline: move to writeCommand form
It’s conventional that these tools have the form

  tool name options data

so we should adhere to that.
Diffstat (limited to 'pkgs/profpatsch/default.nix')
-rw-r--r--pkgs/profpatsch/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix
index bb10198e..69977fff 100644
--- a/pkgs/profpatsch/default.nix
+++ b/pkgs/profpatsch/default.nix
@@ -61,12 +61,14 @@ let
            // (bins pkgs.execline [ "redirfd" "importas" "exec" ]);
         inherit stdenv lib;
       };
-      itLocal = args: it (args // {
-        derivationArgs = args.derivationArgs or {} // {
-          preferLocalBuild = true;
-          allowSubstitutes = false;
-        };
-      });
+      itLocal = name: args: execline:
+        it name (args // {
+          derivationArgs = args.derivationArgs or {} // {
+            preferLocalBuild = true;
+            allowSubstitutes = false;
+          };
+        }) execline;
+
       tests = import ./execline/run-execline-tests.nix {
         # can’t use runExeclineLocal in the tests,
         # because it is tested by the tests (well, it does
@@ -85,7 +87,8 @@ let
        };
     in {
       runExecline = it;
-      runExeclineLocal = args: testing.drvSeqL tests (itLocal args);
+      runExeclineLocal = name: args: execline:
+        testing.drvSeqL tests (itLocal name args execline);
     };