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
42
pkgs/os-specific/linux/setools/default.nix
Normal file
42
pkgs/os-specific/linux/setools/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, fetchFromGitHub, python3
|
||||
, libsepol, libselinux, checkpolicy
|
||||
, withGraphics ? false
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with python3.pkgs;
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "setools";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SELinuxProject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1qvd5j6zwq4fmlahg45swjplhif2z89x7s6pnp07gvcp2fbqdsh5";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
buildInputs = [ libsepol ];
|
||||
propagatedBuildInputs = [ enum34 libselinux networkx ]
|
||||
++ optionals withGraphics [ pyqt5 ];
|
||||
|
||||
checkInputs = [ tox checkpolicy ];
|
||||
preCheck = ''
|
||||
export CHECKPOLICY=${checkpolicy}/bin/checkpolicy
|
||||
'';
|
||||
|
||||
setupPyBuildFlags = [ "-i" ];
|
||||
|
||||
preBuild = ''
|
||||
export SEPOL="${lib.getLib libsepol}/lib/libsepol.a"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "SELinux Policy Analysis Tools";
|
||||
homepage = "https://github.com/SELinuxProject/setools";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue