on iko/ghcjs-patch-master help sign in
Add nix-tools
72cc37dRodney Lorrimar
@@ -77,6 +77,12 @@ let
77 modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
77 modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
78 };
78 };
79
79
80+ # Programs for generating Nix expressions from Cabal and Stack
81+ # files.
82+ nix-tools = self.callPackage ./nix-tools {
83+ inherit fetchExternal;
84+ };
85+
80 # Snapshots of Hackage and Stackage, converted to Nix expressions,
86 # Snapshots of Hackage and Stackage, converted to Nix expressions,
81 # regularly updated.
87 # regularly updated.
82 inherit hackage stackage;
88 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+}