concat: RIP
This commit is contained in:
parent
803ccdb2f6
commit
cc1ae23f26
|
@ -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
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue