uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
From 2867f022aad754fe54d95222b3ae52f6e7f14c2f Mon Sep 17 00:00:00 2001
|
||||
From: "P. R. d. O" <d.ol.rod@tutanota.com>
|
||||
Date: Wed, 27 Apr 2022 21:49:12 -0600
|
||||
Subject: [PATCH] Patching GIRepository
|
||||
|
||||
---
|
||||
protonvpn_nm_lib/__init__.py | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/protonvpn_nm_lib/__init__.py b/protonvpn_nm_lib/__init__.py
|
||||
index e69de29..00b95f4 100644
|
||||
--- a/protonvpn_nm_lib/__init__.py
|
||||
+++ b/protonvpn_nm_lib/__init__.py
|
||||
@@ -0,0 +1,5 @@
|
||||
+import gi
|
||||
+gi.require_version('GIRepository', '2.0')
|
||||
+from gi.repository import GIRepository
|
||||
+repo = GIRepository.Repository.get_default()
|
||||
+repo.prepend_search_path('@networkmanager_path@')
|
||||
--
|
||||
2.35.1
|
||||
|
||||
67
pkgs/development/python-modules/protonvpn-nm-lib/default.nix
Normal file
67
pkgs/development/python-modules/protonvpn-nm-lib/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, substituteAll
|
||||
, dbus-python
|
||||
, distro
|
||||
, jinja2
|
||||
, keyring
|
||||
, proton-client
|
||||
, pygobject3
|
||||
, pyxdg
|
||||
, systemd
|
||||
, ncurses
|
||||
, networkmanager
|
||||
, pkgs-systemd
|
||||
, xdg-utils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "protonvpn-nm-lib";
|
||||
version = "3.10.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ProtonVPN";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-WVIQ43J01BQzYhEPDHcoAmUvlsaDw0Z7yLQGajVdedU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dbus-python
|
||||
distro
|
||||
jinja2
|
||||
keyring
|
||||
proton-client
|
||||
pygobject3
|
||||
pyxdg
|
||||
systemd
|
||||
ncurses
|
||||
networkmanager
|
||||
pkgs-systemd
|
||||
xdg-utils
|
||||
];
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./0001-Patching-GIRepository.patch;
|
||||
networkmanager_path = "${networkmanager}/lib/girepository-1.0";
|
||||
})
|
||||
];
|
||||
|
||||
# Checks cannot be run in the sandbox
|
||||
# "Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory"
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "protonvpn_nm_lib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "ProtonVPN NetworkManager Library intended for every ProtonVPN service user";
|
||||
homepage = "https://github.com/ProtonVPN/protonvpn-nm-lib";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue