This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +26
-138
lines changed Expand file tree Collapse file tree 7 files changed +26
-138
lines changed Original file line number Diff line number Diff line change 1
- let localLib = import ./nix/lib.nix ; in
2
1
{ config ? { }
3
2
, system ? builtins . currentSystem
4
- , pkgs ? localLib . importPkgs { inherit config system ; }
3
+ , iohkLib ? import ./nix/iohk-common.nix { inherit config system ; }
4
+ , pkgs ? iohkLib . cardano-sl . pkgs
5
5
} :
6
6
7
7
import ./nix/pkgs.nix { inherit pkgs ; }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Imports the iohk-nix library.
2
+ # The version can be overridden for debugging purposes by setting
3
+ # NIX_PATH=iohk_nix=/path/to/iohk-nix
4
+
5
+ import (
6
+ let try = builtins . tryEval <iohk_nix> ;
7
+ in if try . success
8
+ then builtins . trace "using host <iohk_nix>" try . value
9
+ else
10
+ let
11
+ spec = builtins . fromJSON ( builtins . readFile ./iohk-nix.json ) ;
12
+ in builtins . fetchTarball {
13
+ url = "${ spec . url } /archive/${ spec . rev } .tar.gz" ;
14
+ inherit ( spec ) sha256 ;
15
+ } )
Original file line number Diff line number Diff line change
1
+ {
2
+ "url" : " https://github.com/input-output-hk/iohk-nix" ,
3
+ "rev" : " aa9911a864100ec116b8cbd1bd7f4958dad23acf" ,
4
+ "date" : " 2018-11-14T11:13:03+10:00" ,
5
+ "sha256" : " 1j25vbcwybnbjijr4wdgbgnq47rlfhyk07gwcahvcz53j3ha9xcb" ,
6
+ "fetchSubmodules" : false
7
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # build (if needed) the nix-tools from the given hash
4
- NIX_TOOLS=$( nix-build https://github.com/angerman/nix-tools/archive/9b1066f5613b35037231cf2dbb6db25cb60c4205.tar.gz -A nix-tools-all-execs -j8 --no-out-link)
5
- export PATH=$NIX_TOOLS /bin:$PATH
3
+ set -euo pipefail
6
4
7
- # stack-to-nix will transform the stack.yaml file into something
8
- # nix can understand.
9
- stack-to-nix -o nix stack.yaml > nix/.stack-pkgs.nix
5
+ exec $( nix-build ` dirname $0 ` /iohk-common.nix -A cardano-sl.regeneratePackages --no-out-link)
You can’t perform that action at this time.
0 commit comments