Skip to content

Commit

Permalink
ghc-8.2.1: Get rid of preReleaseName binding now that it is released
Browse files Browse the repository at this point in the history
No hashes should be changed
  • Loading branch information
Ericson2314 committed Sep 10, 2017
1 parent 33c99ab commit e916917
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/compilers/ghc/8.2.1.nix
Expand Up @@ -10,12 +10,12 @@
let
inherit (bootPkgs) ghc;
version = "8.2.1";
preReleaseName = "ghc-8.2.1";

commonBuildInputs = [ alex autoconf automake ghc happy hscolour perl python3 sphinx ];
commonPreConfigure = ''
sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/${preReleaseName}"
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export NIX_LDFLAGS+=" -no_dtrace_dof"
'' + stdenv.lib.optionalString enableIntegerSimple ''
Expand All @@ -26,7 +26,7 @@ in stdenv.mkDerivation (rec {
name = "ghc-${version}";

src = fetchurl {
url = "https://downloads.haskell.org/~ghc/${version}/${preReleaseName}-src.tar.xz";
url = "https://downloads.haskell.org/~ghc/${version}/${name}-src.tar.xz";
sha256 = "1w4k0n23b9fg8kmarqhfamzpmf91p6jcdr6xlwzfmb4df2bd9hng";
};

Expand Down Expand Up @@ -57,7 +57,7 @@ in stdenv.mkDerivation (rec {
checkTarget = "test";

postInstall = ''
paxmark m $out/lib/${preReleaseName}/bin/{ghc,haddock}
paxmark m $out/lib/${name}/bin/{ghc,haddock}
# Install the bash completion file.
install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/ghc
Expand Down

0 comments on commit e916917

Please sign in to comment.