mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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
|
||||
# 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 = ''
|
||||
|
@ -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 { });
|
||||
|
Loading…
Reference in New Issue
Block a user