Skip to content

Commit 881f4b4

Browse files
committed
Merge #692: update nixpkgs (bitcoind, lnd)
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
2 parents 85dc561 + 42bae23 commit 881f4b4

File tree

6 files changed

+27
-151
lines changed

6 files changed

+27
-151
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helper/update-flake.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,22 @@ if [[ $forceRun ]] && ! git diff --quiet ../flake.{nix,lock}; then
3939
exit 1
4040
fi
4141

42+
# Support Nix >2.18
43+
{
44+
versionGreaterThan() {
45+
[[ $1 != $(echo -e "$1\n$2" | sort -V | head -n1) ]]
46+
}
47+
nixVersion=$(nix --version | cut -d\ -f 3)
48+
if versionGreaterThan "$nixVersion" 2.18; then
49+
# https://nixos.org/manual/nix/stable/release-notes/rl-2.19#:~:text=nix%20flake%20update
50+
nixUpdateArg=--flake
51+
else
52+
nixUpdateArg=
53+
fi
54+
}
55+
4256
echo "Updating flake 'nixos-search'"
43-
nix flake update ../test/nixos-search
57+
nix flake update $nixUpdateArg ../test/nixos-search
4458
echo
4559

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

5771
echo
5872
nix eval --raw -f update-flake.nix --argstr prevVersions "$versions" showUpdates; echo

pkgs/bitcoin/default.nix

Lines changed: 0 additions & 124 deletions
This file was deleted.

pkgs/default.nix

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ in
1010
}
1111
}:
1212
let self = {
13-
# TODO-EXTERNAL:
14-
# Remove bitcoin and bitcoind 26.x packages and replace with 27.0 from nixpkgs
15-
# when a version of lnd is released that is compatible with 27.0
16-
# (https://github.com/lightningnetwork/lnd/pull/8664).
17-
bitcoin = let inherit (pkgsUnstable) libsForQt5 stdenv darwin; in
18-
libsForQt5.callPackage ./bitcoin {
19-
stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
20-
withGui = true;
21-
inherit (darwin) autoSignDarwinBinariesHook;
22-
};
23-
24-
bitcoind = let inherit (pkgsUnstable) callPackage darwin; in
25-
callPackage ./bitcoin {
26-
withGui = false;
27-
inherit (darwin) autoSignDarwinBinariesHook;
28-
};
2913
clightning-rest = pkgs.callPackage ./clightning-rest { inherit (self) fetchNodeModules; };
3014
clboss = pkgs.callPackage ./clboss { };
3115
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);

pkgs/pinned.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pkgs: pkgsUnstable:
1010
lndconnect;
1111

1212
inherit (pkgsUnstable)
13+
bitcoin
14+
bitcoind
1315
btcpayserver
1416
clightning
1517
elementsd

test/nixos-search/flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)