From b5015b5865d8e8f8b64f99746a571b708e9b776f Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 1 Jan 2021 12:27:20 +0100 Subject: 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`. --- pkgs/profpatsch/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/profpatsch/default.nix') 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"; -- cgit 1.4.1