about summary refs log tree commit diff
path: root/pkgs/profpatsch/execline/run-execline.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/execline/run-execline.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/execline/run-execline.nix')
-rw-r--r--pkgs/profpatsch/execline/run-execline.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/profpatsch/execline/run-execline.nix b/pkgs/profpatsch/execline/run-execline.nix
index 8983dc8e..2efe43d6 100644
--- a/pkgs/profpatsch/execline/run-execline.nix
+++ b/pkgs/profpatsch/execline/run-execline.nix
@@ -1,17 +1,18 @@
 { stdenv, bin, lib }:
-{ name
-# the execline script as a nested list of string,
-# representing the blocks;
-# see docs of `escapeExecline`.
-, execline
+name:
+{
 # a string to pass as stdin to the execline script
-, stdin ? ""
+stdin ? ""
 # a program wrapping the acutal execline invocation;
 # should be in Bernstein-chaining style
 , builderWrapper ? bin.exec
 # additional arguments to pass to the derivation
 , derivationArgs ? {}
 }:
+# the execline script as a nested list of string,
+# representing the blocks;
+# see docs of `escapeExecline`.
+ execline:
 
 # those arguments can’t be overwritten
 assert !derivationArgs ? system;