From 7df8e53d288915d2623479e117ce3c855bc3df7c Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Wed, 12 Apr 2017 00:09:42 +0200 Subject: [PATCH] psc-package: init at 0.1.1 --- .../purescript/psc-package/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/compilers/purescript/psc-package/default.nix diff --git a/pkgs/development/compilers/purescript/psc-package/default.nix b/pkgs/development/compilers/purescript/psc-package/default.nix new file mode 100644 index 000000000000..70ef8b63277f --- /dev/null +++ b/pkgs/development/compilers/purescript/psc-package/default.nix @@ -0,0 +1,26 @@ +{ haskellPackages, mkDerivation, fetchFromGitHub, lib }: + +with lib; + +mkDerivation rec { + pname = "psc-package"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "purescript"; + repo = pname; + rev = "v${version}"; + sha256 = "078xjn10yq4i0ff78bxscvxhn29p3s7iwv3pjyqxzlhaymn5949l"; + }; + + isLibrary = false; + isExecutable = true; + + executableHaskellDepends = with haskellPackages; [ + aeson aeson-pretty optparse-applicative system-filepath turtle + ]; + + description = "An experimental package manager for PureScript"; + license = licenses.bsd3; + maintainers = with lib.maintainers; [ profpatsch ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a735c6a2e67e..b4345da94667 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5232,6 +5232,8 @@ with pkgs; all-cabal-hashes = callPackage ../data/misc/hackage/default.nix { }; purescript = haskell.lib.justStaticExecutables haskellPackages.purescript; + psc-package = haskell.lib.justStaticExecutables + (haskellPackages.callPackage ../development/compilers/purescript/psc-package { }); inherit (ocamlPackages) haxe;