From 9925c5c9b14ba4005a61d44afcff291dbd53120e Mon Sep 17 00:00:00 2001 From: Michal Rus Date: Wed, 12 Apr 2017 21:36:58 +0200 Subject: [PATCH] intero-nix-shim: init at 0.1.2 --- .../haskell-modules/configuration-common.nix | 3 +++ .../tools/haskell/intero-nix-shim/default.nix | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/haskell/intero-nix-shim/default.nix diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 0d563081ed2b..3f4274441baa 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -684,6 +684,9 @@ self: super: { store = self.store_0_3_1; }); + # It makes no sense to have intero-nix-shim in Hackage, so we publish it here only. + intero-nix-shim = self.callPackage ../tools/haskell/intero-nix-shim {}; + # The latest Hoogle needs versions not yet in LTS Haskell 7.x. hoogle = super.hoogle.override { haskell-src-exts = self.haskell-src-exts_1_19_1; }; diff --git a/pkgs/development/tools/haskell/intero-nix-shim/default.nix b/pkgs/development/tools/haskell/intero-nix-shim/default.nix new file mode 100644 index 000000000000..4e9e3381ab03 --- /dev/null +++ b/pkgs/development/tools/haskell/intero-nix-shim/default.nix @@ -0,0 +1,21 @@ +{ mkDerivation, base, directory, filepath, optparse-applicative +, posix-escape, split, stdenv, unix, fetchFromGitHub +}: +mkDerivation { + pname = "intero-nix-shim"; + version = "0.1.2"; + src = fetchFromGitHub { + owner = "michalrus"; + repo = "intero-nix-shim"; + rev = "0.1.2"; + sha256 = "0p1h3w15bgvsbzi7f1n2dxxxz9yq7vmbxmww5igc5d3dm76skgzg"; + }; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + base directory filepath optparse-applicative posix-escape split + unix + ]; + homepage = "https://github.com/michalrus/intero-nix-shim"; + license = stdenv.lib.licenses.asl20; +}