Skip to content

Commit

Permalink
Merge #537: update nixpkgs
Browse files Browse the repository at this point in the history
321e8ba clightning: fix build (Erik Arvstedt)
4456123 rtl: set explicit nodejs version (Erik Arvstedt)
f2cb5bf update nixpkgs (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 321e8ba

Tree-SHA512: f15d29ca63d88e4253a6bfe5f310e80092f1dd2e932be41e9e35d60636b12e617ed5c9ddc9ee8a200646973a66603e776adf07f5bac82ce635499095a92340fc
  • Loading branch information
jonasnick committed Aug 21, 2022
2 parents 749ed14 + 321e8ba commit b214018
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 25 deletions.
18 changes: 9 additions & 9 deletions flake.lock

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

12 changes: 12 additions & 0 deletions pkgs/clightning-mistune-workaround/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ clightning, python3 }:

clightning.override {
python3 = python3.override {
packageOverrides = self: super: {
mistune = self.callPackage ./mistune.nix {
version = "0.8.4";
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
};
};
};
}
27 changes: 27 additions & 0 deletions pkgs/clightning-mistune-workaround/mistune.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, version
, sha256
, format ? "setuptools"
, extraMeta ? {}
}:

buildPythonPackage rec {
inherit version format;
pname = "mistune";

src = fetchPypi {
inherit pname version sha256;
};

buildInputs = [ nose ];
pythonImportsCheck = [ "mistune" ];

meta = with lib; {
description = "The fastest markdown parser in pure Python";
homepage = "https://github.com/lepture/mistune";
license = licenses.bsd3;
} // extraMeta;
}
8 changes: 8 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ let self = {
packageOverrides = import ./python-packages self;
}).pkgs;

# Fix clightning build by using python package mistune 0.8.4, which is a
# strict requirement. This version is affected by CVE-2022-34749, but this
# is irrelevant in this context.
#
# TODO-EXTERNAL:
# Remove this when the clightning build is fixed upstream.
clightning = pkgs.callPackage ./clightning-mistune-workaround { inherit (pkgs) clightning; };

# Internal pkgs
netns-exec = pkgs.callPackage ./netns-exec { };
krops = import ./krops { inherit pkgs; };
Expand Down
9 changes: 4 additions & 5 deletions pkgs/pinned.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ pkgs: pkgsUnstable:
inherit (pkgs)
bitcoin
bitcoind
charge-lnd
electrs
elementsd
extra-container
lightning-pool
lndconnect;
lndconnect
nbxplorer;

inherit (pkgsUnstable)
btcpayserver
clightning
charge-lnd
fulcrum
hwi
lightning-loop
lnd
nbxplorer;
lnd;

inherit pkgs pkgsUnstable;
}
2 changes: 1 addition & 1 deletion pkgs/python-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let
inherit (self) callPackage;

joinmarketPkg = pkg: callPackage pkg { inherit (nbPkgs.joinmarket) version src; };
clightningPkg = pkg: callPackage pkg { inherit (nbPkgs.pinned) clightning; };
clightningPkg = pkg: callPackage pkg { inherit (nbPkgs) clightning; };

unstable = (import ../nixpkgs-pinned.nix).nixpkgs-unstable;
in {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/rtl/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ pkgs, lib, makeWrapper }:
let
inherit (pkgs) nodejs;
nodejs = pkgs.nodejs-14_x;
nodePackages = import ./composition.nix { inherit pkgs nodejs; };
in
nodePackages.package.overrideAttrs (old: {
Expand Down
18 changes: 9 additions & 9 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 b214018

Please sign in to comment.