Skip to content

Commit

Permalink
extra-container: pin to nixpkgs-unstable
Browse files Browse the repository at this point in the history
extra-container is now part of nixpkgs.
  • Loading branch information
erikarvstedt committed Oct 6, 2021
1 parent 75b89f3 commit 265fc19
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 42 deletions.
2 changes: 1 addition & 1 deletion helper/makeShell.nix
Expand Up @@ -6,7 +6,7 @@ let
nbPkgs = import ../pkgs { inherit pkgs; };
cfgDir = toString configDir;
path = lib.optionalString pkgs.stdenv.isLinux ''
export PATH="${lib.makeBinPath [ nbPkgs.extra-container ]}''${PATH:+:}$PATH"
export PATH="${lib.makeBinPath [ nbPkgs.pinned.extra-container ]}''${PATH:+:}$PATH"
'';
in
pkgs.stdenv.mkDerivation {
Expand Down
1 change: 0 additions & 1 deletion pkgs/default.nix
Expand Up @@ -13,7 +13,6 @@ let self = {
nixops19_09 = pkgs.callPackage ./nixops { };
krops = import ./krops { };
netns-exec = pkgs.callPackage ./netns-exec { };
extra-container = pkgs.callPackage ./extra-container { };
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
clboss = pkgs.callPackage ./clboss { };
secp256k1 = pkgs.callPackage ./secp256k1 { };
Expand Down
37 changes: 0 additions & 37 deletions pkgs/extra-container/default.nix

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/pinned.nix
Expand Up @@ -12,6 +12,7 @@ pkgs: pkgsUnstable:
clightning
electrs
elementsd
extra-container
hwi
lightning-loop
lightning-pool
Expand Down
7 changes: 4 additions & 3 deletions test/lib/make-container.sh
Expand Up @@ -77,9 +77,10 @@ while [[ $# > 0 ]]; do
done

containerBin=$(type -P extra-container) || true
if [[ ! ($containerBin && $(realpath $containerBin) == *extra-container-0.7*) ]]; then
echo "Building extra-container. Skip this step by adding extra-container 0.7 to PATH."
nix-build --out-link /tmp/extra-container "$scriptDir"/../pkgs -A extra-container >/dev/null
if [[ ! ($containerBin && $(realpath $containerBin) == *extra-container-0.8*) ]]; then
echo "Building extra-container. Skip this step by adding extra-container 0.8 to PATH."
nix-build --out-link /tmp/extra-container "$scriptDir"/../pkgs \
-A pinned.extra-container >/dev/null
export PATH="/tmp/extra-container/bin${PATH:+:}$PATH"
fi

Expand Down

0 comments on commit 265fc19

Please sign in to comment.