From a9f4ad7586bfb543cdcdeacf93b71bdce506621a Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 20 Jun 2017 19:30:14 +0200 Subject: concat: RIP --- krebs/5pkgs/writers.nix | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'krebs') diff --git a/krebs/5pkgs/writers.nix b/krebs/5pkgs/writers.nix index 8ea9c37d..c4fb8cd8 100644 --- a/krebs/5pkgs/writers.nix +++ b/krebs/5pkgs/writers.nix @@ -1,32 +1,6 @@ pkgs: oldpkgs: with import ; { - - # Combine a list of derivations using symlinks. Paths in later derivations - # take precedence over earlier ones. - # - # Example: create wrapper but retain all other files (man pages etc.) - # - # { - # nixpkgs.config.packageOverrides = super: { - # hello = pkgs.concat "hello" [ - # super.hello - # (pkgs.writeDashBin "hello" '' - # echo OMG - # echo exec ${super.hello}/bin/hello "$@" - # '') - # ]; - # }; - # } - # - concat = name: xs: pkgs.runCommand name {} '' - mkdir $out - ${flip concatMapStrings xs (x: '' - cp --remove-destination -vrs ${x}/* $out - find $out -type d -exec chmod -v u+rwx {} + - '')} - ''; - execve = name: { filename, argv ? null, envp ? {}, destination ? "" }: let in pkgs.writeC name { inherit destination; } /* c */ '' #include -- cgit v1.2.3