diff options
author | Profpatsch <mail@profpatsch.de> | 2019-09-26 03:49:38 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-09-26 03:51:25 +0200 |
commit | 93f5d251eaf7d2944d542281ae6e54ccfa306fd0 (patch) | |
tree | ae5857e1cfd779207cacc14d2c68ad1de1a8eb25 /pkgs/profpatsch/default.nix | |
parent | 61dda874aab6fe77d3d71eb4845ba3717e9c80d2 (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.nix | 17 |
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); }; |