Skip to content

Commit 72cc37d

Browse files
committed
Add nix-tools
1 parent cf8d733 commit 72cc37d

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

0 commit comments

Comments
 (0)