Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
ensure pkgs/default.nix is up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverca22 committed Jun 25, 2017
1 parent b612d9a commit d164420
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ env:

install:
- nix-env -iA nixopsUnstable -f '<nixpkgs>'
- echo "binary-caches = https://cache.nixos.org https://hydra.iohk.io https://hydra.angeldsis.com" > ~/nix.conf
- echo "binary-cache-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" > ~/nix.conf
- touch static/datadog-{api,application}.secret
- echo "secret" > static/tarsnap-cardano-deployer.secret
- mkdir keys
Expand All @@ -31,6 +33,7 @@ script:
- nixops deploy -d csl-explorer-staging --evaluate-only --show-trace
- nixops deploy -d tw --evaluate-only --show-trace
- nixops deploy -d inf --evaluate-only --show-trace
- nix-shell -p cabal2nix stack cabal -Q -j 4 --run scripts/check-stack2nix.sh

notifications:
email: false
Expand Down
5 changes: 4 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
configureFlags = flags;
});
socket-io-src = pkgs.fetchgit (removeAttrs (importJSON ./pkgs/engine-io.json) ["date"]);
in (import pkgs/default.nix { inherit pkgs compiler; }).override {
in ((import pkgs/default.nix { inherit pkgs compiler; }).override {
overrides = self: super: {
cardano-sl-core = prodMode super.cardano-sl-core;
cardano-sl = overrideCabal super.cardano-sl (drv: {
Expand Down Expand Up @@ -52,4 +52,7 @@ in (import pkgs/default.nix { inherit pkgs compiler; }).override {
#enableLibraryProfiling = false;
#});
};
}) // {
# extra packages to expose, that have no relation to pkgs/default.nix
stack2nix = compiler.callPackage ./pkgs/stack2nix.nix {};
}
3 changes: 1 addition & 2 deletions jobsets/cardano.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ with pkgs;
let
iohkpkgs = import ./../default.nix {};
in rec {
inherit (iohkpkgs) cardano-report-server-static cardano-sl-static cardano-sl-explorer-static cardano-sl;
stack2nix = iohkpkgs.callPackage ./../pkgs/stack2nix.nix {};
inherit (iohkpkgs) cardano-report-server-static cardano-sl-static cardano-sl-explorer-static cardano-sl stack2nix;
cardano-node-image = (import <nixpkgs/nixos/lib/eval-config.nix> {
system = "x86_64-linux";
modules = [
Expand Down
6 changes: 4 additions & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3448,8 +3448,8 @@ self: {
pname = "exceptions";
version = "0.8.3";
sha256 = "1gl7xzffsqmigam6zg0jsglncgzxqafld2p6kb7ccp9xirzdjsjd";
revision = "1";
editedCabalFile = "fc13261461399b8610d60468757f2fc0a62ed660dee998f4329e33dd76d2191b";
revision = "2";
editedCabalFile = "dc2b4ed2a3de646d8ff599ff972e25b3a1a5165ead3a46ff84a3d443814c85ee";
libraryHaskellDepends = [
base
mtl
Expand Down Expand Up @@ -5454,6 +5454,8 @@ self: {
pname = "natural-transformation";
version = "0.4";
sha256 = "1by8xwjc23l6pa9l4iv7zp82dykpll3vc3hgxk0pgva724n8xhma";
revision = "1";
editedCabalFile = "83bedd2c7b0e4f8819753d2075036d99483d33bfdd3ba8889cf61fa05fa89ce9";
libraryHaskellDepends = [
base
];
Expand Down
11 changes: 11 additions & 0 deletions scripts/check-stack2nix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash


# Get relative path to script directory
set -xe
scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")

time nix-build -A stack2nix -o $scriptDir/stack2nix -Q -j 4

time $scriptDir/stack2nix/bin/stack2nix --revision 4bcf1e6b601d531f753ebdb6aec23e19d4b08e6c https://github.com/input-output-hk/cardano-sl.git > $scriptDir/default-2.nix
diff -u pkgs/default.nix $scriptDir/default-2.nix

0 comments on commit d164420

Please sign in to comment.