Skip to content

Commit

Permalink
Merge #692: update nixpkgs (bitcoind, lnd)
Browse files Browse the repository at this point in the history
42bae23 update nixpkgs (Erik Arvstedt)
64e9998 update-flake.sh: support Nix >= 2.19 (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 42bae23

Tree-SHA512: 2f64e12adec726b97b8c9ed8cc5e0a95217902099233ab6c891d7098f3371327b86ba5eaab22a75833e71a3640067b1c7a688fe2259eb7501a1d156be0a3a7f1
  • Loading branch information
jonasnick committed May 6, 2024
2 parents 85dc561 + 42bae23 commit 881f4b4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 151 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions helper/update-flake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,22 @@ if [[ $forceRun ]] && ! git diff --quiet ../flake.{nix,lock}; then
exit 1
fi

# Support Nix >2.18
{
versionGreaterThan() {
[[ $1 != $(echo -e "$1\n$2" | sort -V | head -n1) ]]
}
nixVersion=$(nix --version | cut -d\ -f 3)
if versionGreaterThan "$nixVersion" 2.18; then
# https://nixos.org/manual/nix/stable/release-notes/rl-2.19#:~:text=nix%20flake%20update
nixUpdateArg=--flake
else
nixUpdateArg=
fi
}

echo "Updating flake 'nixos-search'"
nix flake update ../test/nixos-search
nix flake update $nixUpdateArg ../test/nixos-search
echo

versions=$(nix eval --json -f update-flake.nix versions)
Expand All @@ -52,7 +66,7 @@ echo "Updating main flake"
if [[ $nixosVersion ]]; then
sed -Ei "s|(nixpkgs.url = .*nixos-)[^\"]+|\1$nixosVersion|" ../flake.nix
fi
nix flake update ..
nix flake update $nixUpdateArg ..

echo
nix eval --raw -f update-flake.nix --argstr prevVersions "$versions" showUpdates; echo
Expand Down
124 changes: 0 additions & 124 deletions pkgs/bitcoin/default.nix

This file was deleted.

16 changes: 0 additions & 16 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ in
}
}:
let self = {
# TODO-EXTERNAL:
# Remove bitcoin and bitcoind 26.x packages and replace with 27.0 from nixpkgs
# when a version of lnd is released that is compatible with 27.0
# (https://github.com/lightningnetwork/lnd/pull/8664).
bitcoin = let inherit (pkgsUnstable) libsForQt5 stdenv darwin; in
libsForQt5.callPackage ./bitcoin {
stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
withGui = true;
inherit (darwin) autoSignDarwinBinariesHook;
};

bitcoind = let inherit (pkgsUnstable) callPackage darwin; in
callPackage ./bitcoin {
withGui = false;
inherit (darwin) autoSignDarwinBinariesHook;
};
clightning-rest = pkgs.callPackage ./clightning-rest { inherit (self) fetchNodeModules; };
clboss = pkgs.callPackage ./clboss { };
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
Expand Down
2 changes: 2 additions & 0 deletions pkgs/pinned.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pkgs: pkgsUnstable:
lndconnect;

inherit (pkgsUnstable)
bitcoin
bitcoind
btcpayserver
clightning
elementsd
Expand Down
6 changes: 3 additions & 3 deletions test/nixos-search/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 881f4b4

Please sign in to comment.