Loading pkgs/development/python-modules/craft-providers/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,11 @@ buildPythonPackage rec { }; patches = [ # This lib will try to inject snaps *from the host system* into the build # system. This patch short-circuits that logic and ensures that snaps are # installed on the build system from the snap store - because there is no # snapd on NixOS hosts that can be used for the injection. This patch will # likely never be accepted upstream. ./inject-snaps.patch ]; Loading pkgs/development/python-modules/craft-providers/inject-snaps.patch +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ index 3c914a2..d9c2cf9 100644 - details=error.details, - ) from error + try: + channel = "latest/edge" if snap.name == "rockcraft" else "latest/stable" + channel = "latest/beta" + snap_installer.install_from_store( + executor=executor, + snap_name=snap.name, Loading Loading
pkgs/development/python-modules/craft-providers/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,11 @@ buildPythonPackage rec { }; patches = [ # This lib will try to inject snaps *from the host system* into the build # system. This patch short-circuits that logic and ensures that snaps are # installed on the build system from the snap store - because there is no # snapd on NixOS hosts that can be used for the injection. This patch will # likely never be accepted upstream. ./inject-snaps.patch ]; Loading
pkgs/development/python-modules/craft-providers/inject-snaps.patch +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ index 3c914a2..d9c2cf9 100644 - details=error.details, - ) from error + try: + channel = "latest/edge" if snap.name == "rockcraft" else "latest/stable" + channel = "latest/beta" + snap_installer.install_from_store( + executor=executor, + snap_name=snap.name, Loading