selinux: 2.9, 3.0 -> 3.3

These are all released together, so I'm updating them all in a single
commit.

+34 -75
+4 -4
pkgs/os-specific/linux/checkpolicy/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "checkpolicy"; 5 - version = "2.9"; 6 - inherit (libsepol) se_release se_url; 7 8 src = fetchurl { 9 - url = "${se_url}/${se_release}/checkpolicy-${version}.tar.gz"; 10 - sha256 = "13jz6f8zdrijvn5w1j102b36fs41z0q8ii74axw48cj550mw6im9"; 11 }; 12 13 nativeBuildInputs = [ bison flex ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "checkpolicy"; 5 + version = "3.3"; 6 + inherit (libsepol) se_url; 7 8 src = fetchurl { 9 + url = "${se_url}/${version}/checkpolicy-${version}.tar.gz"; 10 + sha256 = "118l8c2vvnnckbd269saslr7adv6rdavr5rv0z5vh2m1lgglxj15"; 11 }; 12 13 nativeBuildInputs = [ bison flex ];
+4 -4
pkgs/os-specific/linux/libselinux/default.nix
··· 9 10 stdenv.mkDerivation rec { 11 pname = "libselinux"; 12 - version = "3.0"; 13 - inherit (libsepol) se_release se_url; 14 15 outputs = [ "bin" "out" "dev" "man" ] ++ optional enablePython "py"; 16 17 src = fetchurl { 18 - url = "${se_url}/${se_release}/libselinux-${version}.tar.gz"; 19 - sha256 = "0cr4p0qkr4qd5z1x677vwhz6mlz55kxyijwi2dmrvbhxcw7v78if"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ] ++ optionals enablePython [ swig python3 ];
··· 9 10 stdenv.mkDerivation rec { 11 pname = "libselinux"; 12 + version = "3.3"; 13 + inherit (libsepol) se_url; 14 15 outputs = [ "bin" "out" "dev" "man" ] ++ optional enablePython "py"; 16 17 src = fetchurl { 18 + url = "${se_url}/${version}/libselinux-${version}.tar.gz"; 19 + sha256 = "0mvh793g7fg6wb6zqhkdyrv80x6k84ypqwi8ii89c91xcckyxzdc"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ] ++ optionals enablePython [ swig python3 ];
+4 -4
pkgs/os-specific/linux/libsemanage/default.nix
··· 6 7 stdenv.mkDerivation rec { 8 pname = "libsemanage"; 9 - version = "2.9"; 10 - inherit (libsepol) se_release se_url; 11 12 src = fetchurl { 13 - url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz"; 14 - sha256 = "075w6y3l9hiy5hicgwrmijyxmhfyd1r7cnc08qxyg4j46jfk8xi5"; 15 }; 16 17 outputs = [ "out" "dev" "man" ] ++ optional enablePython "py";
··· 6 7 stdenv.mkDerivation rec { 8 pname = "libsemanage"; 9 + version = "3.3"; 10 + inherit (libsepol) se_url; 11 12 src = fetchurl { 13 + url = "${se_url}/${version}/libsemanage-${version}.tar.gz"; 14 + sha256 = "1s3wb66l47blc15s6lkqs11j9l8pycdqqbb03x3vpfrlz9dfrl44"; 15 }; 16 17 outputs = [ "out" "dev" "man" ] ++ optional enablePython "py";
+4 -19
pkgs/os-specific/linux/libsepol/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "libsepol"; 5 - version = "3.0"; 6 - se_release = "20191204"; 7 se_url = "https://github.com/SELinuxProject/selinux/releases/download"; 8 9 outputs = [ "bin" "out" "dev" "man" ]; 10 11 src = fetchurl { 12 - url = "${se_url}/${se_release}/libsepol-${version}.tar.gz"; 13 - sha256 = "0ygb6dh5lng91xs6xiqf5v0nxa68qmjc787p0s5h9w89364f2yjv"; 14 }; 15 16 - patches = [ 17 - # upstream build fix against -fno-common compilers like >=gcc-10 18 - (fetchpatch { 19 - url = "https://github.com/SELinuxProject/selinux/commit/a96e8c59ecac84096d870b42701a504791a8cc8c.patch"; 20 - sha256 = "0aybv4kzbhx8xq6s82dsh4ib76k59qzh2bgxmk44iq5cjnqn5rd6"; 21 - stripLen = 1; 22 - }) 23 - (fetchpatch { 24 - url = "https://github.com/SELinuxProject/selinux/commit/3d32fc24d6aff360a538c63dad08ca5c957551b0.patch"; 25 - sha256 = "1mphwdlj4d6mwmsp5xkpf6ci4rxhgbi3fm79d08h4jbzxaf4wny4"; 26 - stripLen = 1; 27 - }) 28 - ]; 29 - 30 postPatch = lib.optionalString stdenv.hostPlatform.isStatic '' 31 substituteInPlace src/Makefile --replace 'all: $(LIBA) $(LIBSO)' 'all: $(LIBA)' 32 sed -i $'/^\t.*LIBSO/d' src/Makefile ··· 46 47 NIX_CFLAGS_COMPILE = "-Wno-error"; 48 49 - passthru = { inherit se_release se_url; }; 50 51 meta = with lib; { 52 description = "SELinux binary policy manipulation library";
··· 2 3 stdenv.mkDerivation rec { 4 pname = "libsepol"; 5 + version = "3.3"; 6 se_url = "https://github.com/SELinuxProject/selinux/releases/download"; 7 8 outputs = [ "bin" "out" "dev" "man" ]; 9 10 src = fetchurl { 11 + url = "${se_url}/${version}/libsepol-${version}.tar.gz"; 12 + sha256 = "12r39ygn7aa1kz52wibfr4520m0cp75hlrn3i6rnjqa6p0zdz5rd"; 13 }; 14 15 postPatch = lib.optionalString stdenv.hostPlatform.isStatic '' 16 substituteInPlace src/Makefile --replace 'all: $(LIBA) $(LIBSO)' 'all: $(LIBA)' 17 sed -i $'/^\t.*LIBSO/d' src/Makefile ··· 31 32 NIX_CFLAGS_COMPILE = "-Wno-error"; 33 34 + passthru = { inherit se_url; }; 35 36 meta = with lib; { 37 description = "SELinux binary policy manipulation library";
+5 -5
pkgs/os-specific/linux/policycoreutils/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "policycoreutils"; 5 - version = "2.9"; 6 - inherit (libsepol) se_release se_url; 7 8 src = fetchurl { 9 - url = "${se_url}/${se_release}/policycoreutils-${version}.tar.gz"; 10 - sha256 = "0yqg5ws5gbl1cbn8msxdk1c3ilmmx58qg5dx883kqyq0517k8g65"; 11 }; 12 13 postPatch = '' ··· 24 25 makeFlags = [ 26 "PREFIX=$(out)" 27 - "SBINDIR=$(out)/sbin" 28 "ETCDIR=$(out)/etc" 29 "BASHCOMPLETIONDIR=$out/share/bash-completion/completions" 30 "LOCALEDIR=$(out)/share/locale"
··· 2 3 stdenv.mkDerivation rec { 4 pname = "policycoreutils"; 5 + version = "3.3"; 6 + inherit (libsepol) se_url; 7 8 src = fetchurl { 9 + url = "${se_url}/${version}/policycoreutils-${version}.tar.gz"; 10 + sha256 = "0y0hl32b2ks7r0fhbx3k2j1gqqms5aplyasjs3fz50caxl6096a1"; 11 }; 12 13 postPatch = '' ··· 24 25 makeFlags = [ 26 "PREFIX=$(out)" 27 + "SBINDIR=$(out)/bin" 28 "ETCDIR=$(out)/etc" 29 "BASHCOMPLETIONDIR=$out/share/bash-completion/completions" 30 "LOCALEDIR=$(out)/share/locale"
+4 -5
pkgs/os-specific/linux/selinux-python/default.nix
··· 7 8 stdenv.mkDerivation rec { 9 pname = "selinux-python"; 10 - version = "2.9"; 11 12 - inherit (libsepol) se_release se_url; 13 14 src = fetchurl { 15 - url = "${se_url}/${se_release}/selinux-python-${version}.tar.gz"; 16 - sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n"; 17 }; 18 19 strictDeps = true; ··· 49 platforms = platforms.linux; 50 }; 51 } 52 -
··· 7 8 stdenv.mkDerivation rec { 9 pname = "selinux-python"; 10 + version = "3.3"; 11 12 + inherit (libsepol) se_url; 13 14 src = fetchurl { 15 + url = "${se_url}/${version}/selinux-python-${version}.tar.gz"; 16 + sha256 = "1v244hpb45my303793xa4kcn7qnxjgxn4ja7rdn9k1q361hi1nca"; 17 }; 18 19 strictDeps = true; ··· 49 platforms = platforms.linux; 50 }; 51 }
+4 -4
pkgs/os-specific/linux/selinux-sandbox/default.nix
··· 9 10 stdenv.mkDerivation rec { 11 pname = "selinux-sandbox"; 12 - version = "2.9"; 13 - inherit (policycoreutils) se_release se_url; 14 15 src = fetchurl { 16 - url = "${se_url}/${se_release}/selinux-sandbox-${version}.tar.gz"; 17 - sha256 = "0qj20jyi8v1653xdqj5yak3wwbvg5bw8f2jmx8fpahl6y1bmz481"; 18 }; 19 20 nativeBuildInputs = [ wrapPython ];
··· 9 10 stdenv.mkDerivation rec { 11 pname = "selinux-sandbox"; 12 + version = "3.3"; 13 + inherit (policycoreutils) se_url; 14 15 src = fetchurl { 16 + url = "${se_url}/${version}/selinux-sandbox-${version}.tar.gz"; 17 + sha256 = "0rw8pxfqhl6ww4w31fbf4hi3zilh1n3b1rfjm7ra76mm78wfyylj"; 18 }; 19 20 nativeBuildInputs = [ wrapPython ];
+4 -4
pkgs/os-specific/linux/semodule-utils/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "semodule-utils"; 5 - version = "2.9"; 6 7 - inherit (libsepol) se_release se_url; 8 9 src = fetchurl { 10 - url = "${se_url}/${se_release}/${pname}-${version}.tar.gz"; 11 - sha256 = "01yrwnd3calmw6r8kdh8ld7i7fb250n2yqqqk9p0ymrlwsg6g0w0"; 12 }; 13 14 buildInputs = [ libsepol ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "semodule-utils"; 5 + version = "3.3"; 6 7 + inherit (libsepol) se_url; 8 9 src = fetchurl { 10 + url = "${se_url}/${version}/${pname}-${version}.tar.gz"; 11 + sha256 = "0qvhl40a6jlm8p719nnlw2ghlxbh8lxbcsd59azxp884bxgfr61h"; 12 }; 13 14 buildInputs = [ libsepol ];
-24
pkgs/os-specific/linux/sepolgen/default.nix
··· 1 - { lib, stdenv, fetchurl, libsepol, python }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "sepolgen"; 5 - version = "1.2.2"; 6 - inherit (libsepol) se_release se_url; 7 - 8 - src = fetchurl { 9 - url = "${se_url}/${se_release}/sepolgen-${version}.tar.gz"; 10 - sha256 = "09139kspr41zgksayi4dh982p8080lrfl96p4dld51nknbpaigdy"; 11 - }; 12 - 13 - preBuild = '' 14 - makeFlagsArray+=("PREFIX=$out") 15 - makeFlagsArray+=("DESTDIR=$out") 16 - makeFlagsArray+=("PYTHONLIBDIR=lib/${python.libPrefix}/site-packages") 17 - ''; 18 - 19 - meta = with lib; { 20 - inherit (libsepol.meta) homepage platforms maintainers; 21 - description = "SELinux policy generation library"; 22 - license = licenses.gpl2; 23 - }; 24 - }
···
+1
pkgs/top-level/aliases.nix
··· 833 sdlmame = mame; # added 2019-10-30 834 seeks = throw "seeks has been removed from nixpkgs, as it was unmaintained"; # added 2020-06-21 835 seg3d = throw "seg3d has been removed from nixpkgs (2019-11-10)"; 836 shared_mime_info = shared-mime-info; # added 2018-02-25 837 skrooge2 = skrooge; # added 2017-02-18 838 sky = throw "sky has been removed from nixpkgs (2020-09-16)";
··· 833 sdlmame = mame; # added 2019-10-30 834 seeks = throw "seeks has been removed from nixpkgs, as it was unmaintained"; # added 2020-06-21 835 seg3d = throw "seg3d has been removed from nixpkgs (2019-11-10)"; 836 + sepolgen = throw "sepolgen was merged into selinux-python"; # added 2021-11-11 837 shared_mime_info = shared-mime-info; # added 2018-02-25 838 skrooge2 = skrooge; # added 2017-02-18 839 sky = throw "sky has been removed from nixpkgs (2020-09-16)";
-2
pkgs/top-level/all-packages.nix
··· 22606 22607 sdrangel = libsForQt5.callPackage ../applications/radio/sdrangel { }; 22608 22609 - sepolgen = callPackage ../os-specific/linux/sepolgen { }; 22610 - 22611 setools = callPackage ../os-specific/linux/setools { }; 22612 22613 seturgent = callPackage ../os-specific/linux/seturgent { };
··· 22606 22607 sdrangel = libsForQt5.callPackage ../applications/radio/sdrangel { }; 22608 22609 setools = callPackage ../os-specific/linux/setools { }; 22610 22611 seturgent = callPackage ../os-specific/linux/seturgent { };