Skip to content

Commit

Permalink
Merge pull request #121528 from symphorien/libsepolstatic
Browse files Browse the repository at this point in the history
libsepol: fix static build
  • Loading branch information
symphorien authored May 7, 2021
2 parents af2868f + eadff09 commit a81b23c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/os-specific/linux/libsepol/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
sha256 = "0ygb6dh5lng91xs6xiqf5v0nxa68qmjc787p0s5h9w89364f2yjv";
};

postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
substituteInPlace src/Makefile --replace 'all: $(LIBA) $(LIBSO)' 'all: $(LIBA)'
sed -i $'/^\t.*LIBSO/d' src/Makefile
'';

nativeBuildInputs = [ flex ];

makeFlags = [
Expand All @@ -34,6 +39,6 @@ stdenv.mkDerivation rec {
homepage = "http://userspace.selinuxproject.org";
platforms = platforms.linux;
maintainers = [ maintainers.phreedom ];
license = lib.licenses.gpl2;
license = lib.licenses.gpl2Plus;
};
}

0 comments on commit a81b23c

Please sign in to comment.