pkgs.writeC: drop support for nixpkgs<18.03

remotes/lass/tv
tv 7 years ago
parent b8e4324642
commit a5dd57dd48
  1. 11
      pkgs/default.nix

@ -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"

Loading…
Cancel
Save