Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 37 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, gettext, libsepol, libselinux, libsemanage, libxcrypt }: 2 3stdenv.mkDerivation rec { 4 pname = "policycoreutils"; 5 version = "3.7"; 6 inherit (libsepol) se_url; 7 8 src = fetchurl { 9 url = "${se_url}/${version}/policycoreutils-${version}.tar.gz"; 10 hash = "sha256-WP5OSB7ftEVsEUklRC4ROJ3xc5SSWs26PeIRFFzl6pg="; 11 }; 12 13 postPatch = '' 14 # Fix install references 15 substituteInPlace po/Makefile \ 16 --replace /usr/bin/install install --replace /usr/share /share 17 substituteInPlace newrole/Makefile --replace /usr/share /share 18 ''; 19 20 nativeBuildInputs = [ gettext ]; 21 buildInputs = [ libsepol libselinux libsemanage libxcrypt ]; 22 23 makeFlags = [ 24 "PREFIX=$(out)" 25 "SBINDIR=$(out)/bin" 26 "ETCDIR=$(out)/etc" 27 "BASHCOMPLETIONDIR=$out/share/bash-completion/completions" 28 "LOCALEDIR=$(out)/share/locale" 29 "MAN5DIR=$(out)/share/man/man5" 30 ]; 31 32 meta = with lib; { 33 description = "SELinux policy core utilities"; 34 license = licenses.gpl2Only; 35 inherit (libsepol.meta) homepage platforms maintainers; 36 }; 37}