diff options
-rw-r--r-- | pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/builder.sh | 8 | ||||
-rw-r--r-- | pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix | 22 |
2 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/builder.sh b/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/builder.sh deleted file mode 100644 index 9ac8e74d93a36..0000000000000 --- a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -source $stdenv/setup - -mkdir -p $out -cd $out -unpackFile $src -mkdir xml -mkdir xml/xsl -mv docbook-xsl-* xml/xsl/docbook diff --git a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix b/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix index 981aa59369de3..844789665f7ab 100644 --- a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix +++ b/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix @@ -1,10 +1,24 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "docbook-xsl-1.78.1"; - builder = ./builder.sh; + src = fetchurl { - url = mirror://sourceforge/docbook/docbook-xsl-1.78.1.tar.bz2; + url = "mirror://sourceforge/docbook/${name}.tar.bz2"; sha256 = "0rxl013ncmz1n6ymk2idvx3hix9pdabk8xn01cpcv32wmfb753y9"; }; + + buildPhase = "true"; + + installPhase = + '' + dst=$out/share/xml/docbook-xsl + mkdir -p $dst + rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp + mv * $dst/ + + # Backwards compatibility. Will remove eventually. + mkdir -p $out/xml/xsl + ln -s $dst $out/xml/xsl/docbook + ''; } |