summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/writers.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
committerlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
commit915ccf6ee26688be9daf37a6083b91be95cae024 (patch)
tree18dd85796c90fe7898a2b3a8e8c505ea672598a3 /krebs/5pkgs/writers.nix
parentfbabdb5081366e295fb10a2486fcc66e43a20ed1 (diff)
parenta9f4ad7586bfb543cdcdeacf93b71bdce506621a (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/writers.nix')
-rw-r--r--krebs/5pkgs/writers.nix26
1 files changed, 0 insertions, 26 deletions
diff --git a/krebs/5pkgs/writers.nix b/krebs/5pkgs/writers.nix
index 8ea9c37d5..c4fb8cd83 100644
--- a/krebs/5pkgs/writers.nix
+++ b/krebs/5pkgs/writers.nix
@@ -1,32 +1,6 @@
pkgs: oldpkgs:
with import <stockholm/lib>;
{
-
- # 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 <unistd.h>