pkgs.writeC: drop support for nixpkgs<18.03
This commit is contained in:
@@ -125,12 +125,11 @@ pkgs: oldpkgs: {
|
|||||||
inherit text;
|
inherit text;
|
||||||
passAsFile = [ "text" ];
|
passAsFile = [ "text" ];
|
||||||
} /* sh */ ''
|
} /* sh */ ''
|
||||||
PATH=${makeBinPath (with pkgs; [
|
PATH=${makeBinPath [
|
||||||
# TODO remove if everyone migrated to 18.03
|
pkgs.binutils-unwrapped
|
||||||
(if hasAttr "binutils-unwrapped" pkgs then binutils-unwrapped else binutils)
|
pkgs.coreutils
|
||||||
coreutils
|
pkgs.gcc
|
||||||
gcc
|
]}
|
||||||
])}
|
|
||||||
exe=$out${destination}
|
exe=$out${destination}
|
||||||
mkdir -p "$(dirname "$exe")"
|
mkdir -p "$(dirname "$exe")"
|
||||||
gcc -O -Wall -o "$exe" -x c "$textPath"
|
gcc -O -Wall -o "$exe" -x c "$textPath"
|
||||||
|
|||||||
Reference in New Issue
Block a user