24 lines
499 B
Nix
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;
|
|
};
|
|
}
|