2021-01-15 08:29:18 +01:00
|
|
|
{ lib, stdenv, unzip, src, name, postInstall ? "true", meta ? {}, findXMLCatalogs }:
|
2007-10-18 17:12:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-08-28 16:56:16 +02:00
|
|
|
inherit src name postInstall;
|
2017-11-27 19:53:13 +01:00
|
|
|
|
2017-10-15 18:23:11 +02:00
|
|
|
nativeBuildInputs = [unzip];
|
|
|
|
propagatedNativeBuildInputs = [ findXMLCatalogs ];
|
2016-08-28 16:56:16 +02:00
|
|
|
|
2017-11-27 19:53:13 +01:00
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -p $out/xml/dtd/docbook
|
|
|
|
cd $out/xml/dtd/docbook
|
|
|
|
unpackFile $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
find . -type f -exec chmod -x {} \;
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2016-08-28 16:56:16 +02:00
|
|
|
meta = meta // {
|
2021-01-15 08:29:18 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2016-08-28 16:56:16 +02:00
|
|
|
};
|
2007-10-18 17:12:49 +02:00
|
|
|
}
|