nixpkgs/pkgs/data/sgml+xml/schemas/xml-dtd/docbook/generic.nix

24 lines
487 B
Nix
Raw Normal View History

2021-01-15 08:29:18 +01:00
{ lib, stdenv, unzip, src, name, postInstall ? "true", meta ? {}, findXMLCatalogs }:
stdenv.mkDerivation {
2016-08-28 16:56:16 +02:00
inherit src name postInstall;
2017-11-27 19:53:13 +01: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
};
}