Put back src for nix-tools

This commit is contained in:
Rodney Lorrimar 2019-04-02 20:18:38 +10:00
parent d416f60714
commit adf6b4385b
No known key found for this signature in database
GPG Key ID: 2CCD588917A9A868
3 changed files with 19 additions and 2 deletions

View File

@ -106,7 +106,7 @@ let
# Programs for generating Nix expressions from Cabal and Stack
# files.
nix-tools = self.callPackage ./nix-tools {};
nix-tools = self.callPackage ./nix-tools { inherit fetchExternal; };
# Snapshots of Hackage and Stackage, converted to Nix expressions,
# regularly updated.

View File

@ -1,6 +1,12 @@
{ symlinkJoin, mkCabalProjectPkgSet }:
{ symlinkJoin, fetchExternal, mkCabalProjectPkgSet }:
let
src = fetchExternal {
name = "nix-tools-src";
specJSON = ./nix-tools-src.json;
override = "nix-tools";
};
pkgSet = mkCabalProjectPkgSet {
plan-pkgs = import ./pkgs.nix;
pkg-def-extras = [];
@ -10,6 +16,10 @@ let
packages.time-compat.components.library.doExactConfig = true;
packages.time-locale-compat.components.library.doExactConfig = true;
}
{
packages.nix-tools.src = src;
}
];
};

View File

@ -0,0 +1,7 @@
{
"url": "https://github.com/input-output-hk/nix-tools",
"rev": "38bf6fd0adef4d22fe06def521f5d793c081f6ed",
"date": "2019-03-20T12:40:31+10:00",
"sha256": "0y8xap5cvc9rssjjvlgv6lyi8ixpxnq675r3gkz2ix7hrsgk8989",
"fetchSubmodules": false
}