Merge branch 'staging' (older one)

This commit is contained in:
Vladimír Čunát
2017-12-08 10:22:31 +01:00
25 changed files with 78 additions and 87 deletions

View File

@@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "13i04dkd709f0p5f2413sf2y9321pfi4y85ynf8wih6ryphnbk9x";
};
buildInputs = [ unzip ];
nativeBuildInputs = [ unzip ];
installPhase =
''

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl, unzip }:
let
let
src = fetchurl {
url = http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip;
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
unpackPhase = "true";
buildInputs = [ unzip ];
nativeBuildInputs = [ unzip ];
installPhase =
''

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl, unzip }:
let
let
src = fetchurl {
url = http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip;
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
unpackPhase = "true";
buildInputs = [ unzip ];
nativeBuildInputs = [ unzip ];
installPhase =
''

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

View File

@@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "0rr0d89i0z75qvjbm8il93bippx09hbmjwy0y2sj44n9np69x3hl";
};
buildInputs = [ libxml2 ];
nativeBuildInputs = [ libxml2 ];
installPhase =
''