1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix
2015-08-27 19:07:44 +02:00

25 lines
603 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "docbook-xsl-1.78.1";
src = fetchurl {
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
'';
}