on iko/ghcjs-patch-master help sign in
Add nix-tools
commit72cc37dcc36da99389188c38b2e409d4693c9c56 authorRodney Lorrimar <rodney.lorrimar@iohk.io> dateFri 8 Feb 2019, 10:17 (8 years ago) parentcf8d733
3 files changed+28
default.nix+6 nix-tools/default.nix+15 nix-tools/nix-tools-src.json+7
default.nix+6
@@ -77,6 +77,12 @@ let
7777 modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
7878 };
7979
80+ # Programs for generating Nix expressions from Cabal and Stack
81+ # files.
82+ nix-tools = self.callPackage ./nix-tools {
83+ inherit fetchExternal;
84+ };
85+
8086 # Snapshots of Hackage and Stackage, converted to Nix expressions,
8187 # regularly updated.
8288 inherit hackage stackage;
nix-tools/default.nixnew file+15
@@ -0,0 +1,15 @@
1+{ symlinkJoin, fetchExternal, mkPkgSet }:
2+
3+let
4+ src = fetchExternal {
5+ name = "nix-tools-src";
6+ specJSON = ./nix-tools-src.json;
7+ override = "nix-tools";
8+ };
9+
10+ hsPkgs = import (src + "/pkgs.nix") { inherit mkPkgSet; };
11+in
12+ symlinkJoin {
13+ name = "nix-tools";
14+ paths = builtins.attrValues hsPkgs.nix-tools.components.exes;
15+ }
nix-tools/nix-tools-src.jsonnew file+7
@@ -0,0 +1,7 @@
1+{
2+ "url": "https://github.com/input-output-hk/nix-tools",
3+ "rev": "232e4fde7f942ef234b649144016d5da0f7e2745",
4+ "date": "2019-02-11T12:59:38+08:00",
5+ "sha256": "1nrm9vcq443isk09z1fmlp8zxnw9p3cx95zbda29s5mky17ky2c0",
6+ "fetchSubmodules": false
7+}