concat: RIP

This commit is contained in:
tv 2017-06-20 19:30:14 +02:00
parent 803ccdb2f6
commit cc1ae23f26

View file

@ -32,19 +32,24 @@ with import <stockholm/lib>;
# hack `tee` behavior # hack `tee` behavior
nixpkgs.config.packageOverrides = super: { nixpkgs.config.packageOverrides = super: {
irc-announce = super.callPackage <stockholm/krebs/5pkgs/simple/irc-announce> { irc-announce = super.callPackage <stockholm/krebs/5pkgs/simple/irc-announce> {
pkgs = pkgs // { coreutils = pkgs.concat "coreutils-hack" [ pkgs = pkgs // {
pkgs.coreutils coreutils = pkgs.symlinkJoin {
(pkgs.writeDashBin "tee" '' name = "coreutils-hack";
if test "$1" = /dev/stderr; then paths = [
while read -r line; do pkgs.coreutils
echo "$line" (pkgs.writeDashBin "tee" ''
echo "$line" >&2 if test "$1" = /dev/stderr; then
done while read -r line; do
else echo "$line"
${super.coreutils}/bin/tee "$@" echo "$line" >&2
fi done
'') else
];}; ${super.coreutils}/bin/tee "$@"
fi
'')
];
};
};
}; };
}; };
} }