forked from mirrors/nixpkgs
24 lines
489 B
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;
|
|
};
|
|
}
|