This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +53
-8
lines changed Expand file tree Collapse file tree 5 files changed +53
-8
lines changed Original file line number Diff line number Diff line change 5
5
, gitrev ? iohkLib . commitIdFromGitRepo ./.
6
6
} :
7
7
8
- import ./nix/pkgs.nix { inherit pkgs ; }
8
+ let
9
+ haskellPackages = import ./nix/pkgs.nix {
10
+ inherit pkgs ;
11
+ src = iohkLib . cleanSourceHaskell ./. ;
12
+ } ;
13
+
14
+ in {
15
+ inherit haskellPackages ;
16
+
17
+ inherit ( haskellPackages . cardano-shell . components )
18
+ benchmarks exes library tests ;
19
+ }
Original file line number Diff line number Diff line change
1
+ { }
Original file line number Diff line number Diff line change 1
- { pkgs ? import <nixpkgs> { }
1
+ { args ? { config = import ./config.nix ; }
2
+ , pkgs ? import <nixpkgs> { inherit args ; }
3
+ , src ? ../.
2
4
} :
3
5
let
4
6
overrideWith = override : default :
57
59
] ;
58
60
modules = [
59
61
haskell . ghcHackagePatches . ${ compiler }
62
+
63
+ { packages . cardano-wallet . src = pkgs . lib . mkForce src ; }
60
64
] ;
61
65
} ;
62
66
Original file line number Diff line number Diff line change 1
- with import ./default.nix { } ;
2
- { cardano-shell = cardano-shell . components . exes . cardano-shell-exe ;
3
- cardano-shell-tests = cardano-shell . components . tests ;
4
- cardano-shell-library = cardano-shell . components . library ;
5
- }
1
+ ############################################################################
2
+ # Hydra release jobset
3
+ #
4
+ # Example build for Linux:
5
+ #
6
+ # nix-build release.nix -A exes.cardano-shell-exe.x86_64-linux
7
+ #
8
+ ############################################################################
9
+
10
+ let
11
+ iohkLib = import ./nix/iohk-common.nix { application = "cardano-sl" ; } ;
12
+ fixedNixpkgs = iohkLib . pkgs ;
13
+
14
+ in { supportedSystems ? [ "x86_64-linux" ]
15
+ , scrubJobs ? true
16
+ , cardano-shell ? { outPath = ./. ; rev = "abcdef" ; }
17
+ , nixpkgsArgs ? {
18
+ config = ( import ./nix/config.nix // { allowUnfree = false ; inHydra = true ; } ) ;
19
+ gitrev = cardano-shell . rev ;
20
+ }
21
+ } :
22
+
23
+ with ( import ( fixedNixpkgs . path + "/pkgs/top-level/release-lib.nix" ) {
24
+ inherit supportedSystems scrubJobs nixpkgsArgs ;
25
+ packageSet = import cardano-shell . outPath ;
26
+ } ) ;
27
+
28
+ let
29
+ jobs = mapTestOn {
30
+ exes . cardano-shell-exe = supportedSystems ;
31
+ } ;
32
+
33
+ in
34
+ jobs
Original file line number Diff line number Diff line change 1
1
let
2
2
hsPkgs = import ./default.nix { } ;
3
- mainShell = hsPkgs . cardano-shell . components . all ;
3
+ mainShell = hsPkgs . haskellPackages . cardano-shell . components . all ;
4
4
pkgs = import ( import ./nixpkgs.nix ) { config = import ./config.nix ; } ;
5
5
runCoveralls = pkgs . stdenv . mkDerivation {
6
6
name = "run-coveralls" ;
You can’t perform that action at this time.
0 commit comments