purescript: inline properties used from pkgs
Co-Authored-By: justinwoo <moomoowoo@gmail.com>
This commit is contained in:
parent
ee1e16453f
commit
fb39447028
@ -1,13 +1,13 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ stdenv, fetchurl, zlib, gmp, ncurses5 }:
|
||||||
|
|
||||||
# from justinwoo/easy-purescript-nix
|
# from justinwoo/easy-purescript-nix
|
||||||
# https://github.com/justinwoo/easy-purescript-nix/blob/d383972c82620a712ead4033db14110497bc2c9c/purs.nix
|
# https://github.com/justinwoo/easy-purescript-nix/blob/d383972c82620a712ead4033db14110497bc2c9c/purs.nix
|
||||||
|
|
||||||
let
|
let
|
||||||
dynamic-linker = pkgs.stdenv.cc.bintools.dynamicLinker;
|
dynamic-linker = stdenv.cc.bintools.dynamicLinker;
|
||||||
|
|
||||||
patchelf = libPath :
|
patchelf = libPath :
|
||||||
if pkgs.stdenv.isDarwin
|
if stdenv.isDarwin
|
||||||
then ""
|
then ""
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
@ -16,28 +16,28 @@ let
|
|||||||
chmod u-w $PURS
|
chmod u-w $PURS
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in pkgs.stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "purs-simple";
|
name = "purs-simple";
|
||||||
version = "v0.12.3";
|
version = "v0.12.3";
|
||||||
|
|
||||||
src =
|
src =
|
||||||
if pkgs.stdenv.isDarwin
|
if stdenv.isDarwin
|
||||||
then
|
then
|
||||||
pkgs.fetchurl {
|
fetchurl {
|
||||||
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/macos.tar.gz";
|
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/macos.tar.gz";
|
||||||
sha256 = "1f916gv4fz571l4jvr15xjnsvjyy4nljv2ii9njwlm7k6yr5m0qn";
|
sha256 = "1f916gv4fz571l4jvr15xjnsvjyy4nljv2ii9njwlm7k6yr5m0qn";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pkgs.fetchurl {
|
fetchurl {
|
||||||
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/linux64.tar.gz";
|
url = "https://github.com/purescript/purescript/releases/download/v0.12.3/linux64.tar.gz";
|
||||||
sha256 = "1fad862a2sv4njxbbcfzibbi585m6is3ywb94nmjl8ax254baj3i";
|
sha256 = "1fad862a2sv4njxbbcfzibbi585m6is3ywb94nmjl8ax254baj3i";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
buildInputs = [ pkgs.zlib
|
buildInputs = [ zlib
|
||||||
pkgs.gmp
|
gmp
|
||||||
pkgs.ncurses5];
|
ncurses5 ];
|
||||||
libPath = pkgs.lib.makeLibraryPath buildInputs;
|
libPath = lib.makeLibraryPath buildInputs;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -7137,7 +7137,7 @@ in
|
|||||||
|
|
||||||
all-cabal-hashes = callPackage ../data/misc/hackage { };
|
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
|
psc-package = haskell.lib.justStaticExecutables
|
||||||
(haskellPackages.callPackage ../development/compilers/purescript/psc-package { });
|
(haskellPackages.callPackage ../development/compilers/purescript/psc-package { });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user