Merge pull request #6 from jhenahan/patch-1

Add src for Darwin builds. Fixes #5.
This commit is contained in:
Justin Woo 2019-08-07 17:57:30 +03:00 committed by GitHub
commit de5dfc71ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 13 deletions

View file

@ -3,7 +3,12 @@
pkgs.stdenv.mkDerivation rec { pkgs.stdenv.mkDerivation rec {
name = "dhall-bash-simple"; name = "dhall-bash-simple";
src = pkgs.fetchurl { src = if pkgs.stdenv.isDarwin
then pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-bash-1.0.22-x86_64-macos.tar.bz2";
sha256 = "1dqahd3rnsi8rh14cxyn7xvzg9p9brjqmymy085a1iq2bykqydp1";
}
else pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-bash-1.0.22-x86_64-linux.tar.bz2"; url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-bash-1.0.22-x86_64-linux.tar.bz2";
sha256 = "1849qacj6xk3ki8hyw3862jrabq2gp44sjay0r9iiygifzm51pk6"; sha256 = "1849qacj6xk3ki8hyw3862jrabq2gp44sjay0r9iiygifzm51pk6";
}; };

View file

@ -3,7 +3,12 @@
pkgs.stdenv.mkDerivation rec { pkgs.stdenv.mkDerivation rec {
name = "dhall-json-simple"; name = "dhall-json-simple";
src = pkgs.fetchurl { src = if pkgs.stdenv.isDarwin
then pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-json-1.4.0-x86_64-macos.tar.bz2";
sha256 = "0427xy59mzyrz978l36x0ha610bpckg14m3svkvg8hipvblgh19r";
}
else pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-json-1.4.0-x86_64-linux.tar.bz2"; url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-json-1.4.0-x86_64-linux.tar.bz2";
sha256 = "14apqq0dj3lmm8yccygf8bb27scxjfkjkmr8zgnwb98znr51gfwn"; sha256 = "14apqq0dj3lmm8yccygf8bb27scxjfkjkmr8zgnwb98znr51gfwn";
}; };

View file

@ -2,8 +2,12 @@
pkgs.stdenv.mkDerivation rec { pkgs.stdenv.mkDerivation rec {
name = "dhall-simple"; name = "dhall-simple";
src = if pkgs.stdenv.isDarwin
src = pkgs.fetchurl { then pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-1.25.0-x86_64-macos.tar.bz2";
sha256 = "1ar1wh0kp1fn0xbr60b61bkj4q3bd2k0df6lgzyqngbjackx2yn2";
}
else pkgs.fetchurl {
url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-1.25.0-x86_64-linux.tar.bz2"; url = "https://github.com/dhall-lang/dhall-haskell/releases/download/1.25.0/dhall-1.25.0-x86_64-linux.tar.bz2";
sha256 = "12w2549mx4js7dz4qjcrps6nivj37ikg3daybl5fskshdyf44ia7"; sha256 = "12w2549mx4js7dz4qjcrps6nivj37ikg3daybl5fskshdyf44ia7";
}; };