nixpkgs/pkgs/data/sgml+xml/schemas/xml-dtd/docbook/generic.nix
2017-12-03 01:50:43 +02:00

24 lines
499 B
Nix

{ stdenv, fetchurl, 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;
};
}