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
40
pkgs/development/python-modules/supervise_api/default.nix
Normal file
40
pkgs/development/python-modules/supervise_api/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, supervise
|
||||
, isPy3k
|
||||
, whichcraft
|
||||
, util-linux
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "supervise_api";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1230f42294910e83421b7d3b08a968d27d510a4a709e966507ed70db5da1b9de";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./supervise-path.patch;
|
||||
inherit supervise;
|
||||
})
|
||||
];
|
||||
|
||||
# In the git repo, supervise_api lives inside a python subdir
|
||||
patchFlags = [ "-p2" ];
|
||||
|
||||
propagatedBuildInputs = lib.optional (!isPy3k) whichcraft;
|
||||
|
||||
checkInputs = [ util-linux ];
|
||||
|
||||
meta = {
|
||||
description = "An API for running processes safely and securely";
|
||||
homepage = "https://github.com/catern/supervise";
|
||||
license = lib.licenses.lgpl3;
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/python/supervise_api/supervise.py b/python/supervise_api/supervise.py
|
||||
index 497d3ea..be57e35 100644
|
||||
--- a/python/supervise_api/supervise.py
|
||||
+++ b/python/supervise_api/supervise.py
|
||||
@@ -41,9 +41,7 @@ try:
|
||||
except:
|
||||
from whichcraft import which
|
||||
|
||||
-supervise_utility_location = which("supervise")
|
||||
-if not supervise_utility_location:
|
||||
- raise FileNotFoundError(errno.ENOENT, "Executable not found in PATH", "supervise")
|
||||
+supervise_utility_location = '@supervise@/bin/supervise'
|
||||
|
||||
|
||||
def ignore_sigchld():
|
||||
Loading…
Add table
Add a link
Reference in a new issue