3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/sgml+xml/schemas/xml-dtd/docbook/generic.nix

24 lines
489 B
Nix

{ stdenv, unzip, src, name, postInstall ? "true", meta ? {}, findXMLCatalogs }:
stdenv.mkDerivation {
inherit src name postInstall;
nativeBuildInputs = [unzip];
propagatedNativeBuildInputs = [ findXMLCatalogs ];
unpackPhase = ''
mkdir -p $out/xml/dtd/docbook
cd $out/xml/dtd/docbook
unpackFile $src
'';
installPhase = ''
find . -type f -exec chmod -x {} \;
runHook postInstall
'';
meta = meta // {
platforms = stdenv.lib.platforms.unix;
};
}