purescript: inline properties used from pkgs

Co-Authored-By: justinwoo <moomoowoo@gmail.com>
This commit is contained in:
Graham Christensen 2019-03-20 15:50:16 +02:00 committed by GitHub
parent ee1e16453f
commit fb39447028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -1,13 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
{ stdenv, fetchurl, zlib, gmp, ncurses5 }:
# from justinwoo/easy-purescript-nix
# https://github.com/justinwoo/easy-purescript-nix/blob/d383972c82620a712ead4033db14110497bc2c9c/purs.nix
let
dynamic-linker = pkgs.stdenv.cc.bintools.dynamicLinker;
dynamic-linker = stdenv.cc.bintools.dynamicLinker;
patchelf = libPath :
if pkgs.stdenv.isDarwin
if stdenv.isDarwin
then ""
else
''
@ -16,28 +16,28 @@ let
chmod u-w $PURS
'';
in pkgs.stdenv.mkDerivation rec {
in stdenv.mkDerivation rec {
name = "purs-simple";
version = "v0.12.3";
src =
if pkgs.stdenv.isDarwin
if stdenv.isDarwin
then
pkgs.fetchurl {
fetchurl {
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/macos.tar.gz";
sha256 = "1f916gv4fz571l4jvr15xjnsvjyy4nljv2ii9njwlm7k6yr5m0qn";
}
else
pkgs.fetchurl {
fetchurl {
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/linux64.tar.gz";
sha256 = "1fad862a2sv4njxbbcfzibbi585m6is3ywb94nmjl8ax254baj3i";
};
buildInputs = [ pkgs.zlib
pkgs.gmp
pkgs.ncurses5];
libPath = pkgs.lib.makeLibraryPath buildInputs;
buildInputs = [ zlib
gmp
ncurses5 ];
libPath = lib.makeLibraryPath buildInputs;
dontStrip = true;
installPhase = ''

View file

@ -7137,7 +7137,7 @@ in
all-cabal-hashes = callPackage ../data/misc/hackage { };
purescript = callPackage ../development/compilers/purescript/purescript { inherit pkgs; };
purescript = callPackage ../development/compilers/purescript/purescript { };
psc-package = haskell.lib.justStaticExecutables
(haskellPackages.callPackage ../development/compilers/purescript/psc-package { });