libcap_ng: remove unused code for python bindings

The code was introduced way back in 2015 and is unused since then.

https://github.com/NixOS/nixpkgs/commit/2dc9cb1120cc172055601182e76ee4759cd22fe9

+5 -26
+4 -21
pkgs/os-specific/linux/libcap-ng/default.nix
··· 1 - { lib, stdenv, fetchurl, swig ? null, python2 ? null, python3 ? null }: 2 - 3 - assert python2 != null || python3 != null -> swig != null; 4 5 stdenv.mkDerivation rec { 6 pname = "libcap-ng"; 7 - # When updating make sure to test that the version with 8 - # all of the python bindings still works 9 version = "0.8.3"; 10 11 src = fetchurl { 12 - url = "${meta.homepage}/${pname}-${version}.tar.gz"; 13 sha256 = "sha256-vtb2hI4iuy+Dtfdksq7w7TkwVOgDqOOocRyyo55rSS0="; 14 }; 15 16 - nativeBuildInputs = [ swig ]; 17 - buildInputs = [ python2 python3 ]; 18 - 19 - postPatch = '' 20 - function get_header() { 21 - echo -e "#include <$1>" | gcc -M -xc - | tr ' ' '\n' | grep "$1" | head -n 1 22 - } 23 - 24 - # Fix some hardcoding of header paths 25 - sed -i "s,/usr/include/linux/capability.h,$(get_header linux/capability.h),g" bindings/python{,3}/Makefile.in 26 - ''; 27 - 28 configureFlags = [ 29 - (if python2 != null then "--with-python" else "--without-python") 30 - (if python3 != null then "--with-python3" else "--without-python3") 31 ]; 32 33 - meta = let inherit (lib) platforms licenses; in { 34 description = "Library for working with POSIX capabilities"; 35 homepage = "https://people.redhat.com/sgrubb/libcap-ng/"; 36 platforms = platforms.linux;
··· 1 + { lib, stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 pname = "libcap-ng"; 5 version = "0.8.3"; 6 7 src = fetchurl { 8 + url = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${version}.tar.gz"; 9 sha256 = "sha256-vtb2hI4iuy+Dtfdksq7w7TkwVOgDqOOocRyyo55rSS0="; 10 }; 11 12 configureFlags = [ 13 + "--without-python" 14 ]; 15 16 + meta = with lib; { 17 description = "Library for working with POSIX capabilities"; 18 homepage = "https://people.redhat.com/sgrubb/libcap-ng/"; 19 platforms = platforms.linux;
+1 -5
pkgs/top-level/all-packages.nix
··· 24184 24185 libcap = callPackage ../os-specific/linux/libcap { }; 24186 24187 - libcap_ng = callPackage ../os-specific/linux/libcap-ng { 24188 - swig = null; # Currently not using the python2/3 bindings 24189 - python2 = null; # Currently not using the python2 bindings 24190 - python3 = null; # Currently not using the python3 bindings 24191 - }; 24192 24193 libnotify = callPackage ../development/libraries/libnotify { }; 24194
··· 24184 24185 libcap = callPackage ../os-specific/linux/libcap { }; 24186 24187 + libcap_ng = callPackage ../os-specific/linux/libcap-ng { }; 24188 24189 libnotify = callPackage ../development/libraries/libnotify { }; 24190