diff options
author | Profpatsch <mail@profpatsch.de> | 2021-01-01 12:27:20 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-01-01 12:27:20 +0100 |
commit | b5015b5865d8e8f8b64f99746a571b708e9b776f (patch) | |
tree | 55087666a194b810f8848ba539118f6354092cd9 /pkgs/profpatsch/default.nix | |
parent | 47a8bf4dd2cb1f6778b38bc2f4990ba72366d5a9 (diff) |
pkgs/profpatsch: add nix-run
Small tool which takes a block of nix options that should produce a script to run, and then calls the script with the rest of argv e nix-run { -A foobar } a b c calls `nix-build -A foobar && ./result a b c`.
Diffstat (limited to 'pkgs/profpatsch/default.nix')
-rw-r--r-- | pkgs/profpatsch/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index 0c37387a..e3c65803 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -169,6 +169,8 @@ in rec { writeExecline writeExeclineBin; inherit (import ./execline/runblock.nix { inherit pkgs; }) runblock; + inherit (import ./execline/nixecline.nix { inherit writeExecline; }) + backtick; inherit (import ./execline/e.nix { inherit pkgs writeExecline getBins; }) e; @@ -193,6 +195,10 @@ in rec { importas-if ; + inherit (import ./nix-tools.nix { inherit pkgs getBins writeExecline runblock backtick; }) + nix-run + ; + easy-dhall-nix = (import (pkgs.fetchFromGitHub { owner = "justinwoo"; |