docbook_xsl_*: Remove builder.sh

This commit is contained in:
Tuomas Tynkkynen 2017-11-27 20:53:13 +02:00
parent f24d1b7c2c
commit a506d0ac66
4 changed files with 23 additions and 19 deletions

View File

@ -1,6 +0,0 @@
source $stdenv/setup
mkdir -p $out/xml/dtd/docbook-ebnf
cd $out/xml/dtd/docbook-ebnf
cp -p $dtd dbebnf.dtd
cp -p $catalog $(stripHash $catalog)

View File

@ -1,16 +1,24 @@
{stdenv, fetchurl, unzip}:
assert unzip != null;
stdenv.mkDerivation {
name = "docbook-xml-ebnf-1.2b1";
builder = ./builder.sh;
dtd = fetchurl {
url = http://www.docbook.org/xml/ebnf/1.2b1/dbebnf.dtd;
sha256 = "0min5dsc53my13b94g2yd65q1nkjcf4x1dak00bsc4ckf86mrx95";
};
catalog = ./docbook-ebnf.cat;
unpackPhase = ''
mkdir -p $out/xml/dtd/docbook-ebnf
cd $out/xml/dtd/docbook-ebnf
'';
installPhase = ''
cp -p $dtd dbebnf.dtd
cp -p $catalog $(stripHash $catalog)
'';
meta = {
platforms = stdenv.lib.platforms.unix;
};

View File

@ -1,7 +0,0 @@
source $stdenv/setup
mkdir -p $out/xml/dtd/docbook
cd $out/xml/dtd/docbook
unpackFile $src
find . -type f -exec chmod -x {} \;
eval "$postInstall"

View File

@ -1,13 +1,22 @@
{ stdenv, fetchurl, unzip, src, name, postInstall ? "true", meta ? {}, findXMLCatalogs }:
assert unzip != null;
stdenv.mkDerivation {
inherit src name postInstall;
builder = ./builder.sh;
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;
};