diff options
author | Eelco Dolstra | 2015-08-27 16:56:43 +0200 |
---|---|---|
committer | Eelco Dolstra | 2015-08-27 19:07:44 +0200 |
commit | 97cd7cfea2d44b97e536b0d36d2ed9d4c15e998e (patch) | |
tree | cbf0eae0442b391bcba243f7f393ece0522c335c /pkgs | |
parent | 4e41b64511bfa075aaba20f27f6adb75548403f0 (diff) |
docbook-xsl: Remove cruft
Diffstat (limited to 'pkgs')
-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 9ac8e74d93a3..000000000000 --- 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 981aa59369de..844789665f7a 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 + ''; } |