about summary refs log tree commit diff
path: root/pkgs/applications/audio/csound
diff options
context:
space:
mode:
authorhlolli <hlolli@gmail.com>2019-02-21 21:11:23 +0100
committerhlolli <hlolli@gmail.com>2019-02-21 21:11:23 +0100
commit649e3357e98e17784d48869837a2fc28b3d51e4f (patch)
treece9eba0ea31394b629634a01f5cdf977cd806b3d /pkgs/applications/audio/csound
parent6c5097ba02bd0d39bc2d24dbd18ac74ad8c93645 (diff)
downloadnixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar.gz
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar.bz2
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar.lz
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar.xz
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.tar.zst
nixlib-649e3357e98e17784d48869837a2fc28b3d51e4f.zip
csound-manual: init at 6.12.0
Diffstat (limited to 'pkgs/applications/audio/csound')
-rw-r--r--pkgs/applications/audio/csound/csound-manual/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/audio/csound/csound-manual/default.nix b/pkgs/applications/audio/csound/csound-manual/default.nix
new file mode 100644
index 000000000000..f82ec7a4ea13
--- /dev/null
+++ b/pkgs/applications/audio/csound/csound-manual/default.nix
@@ -0,0 +1,44 @@
+{ 
+  stdenv, fetchurl, docbook_xsl,
+  docbook_xml_dtd_45, python, pygments, 
+  libxslt 
+}:
+
+stdenv.mkDerivation rec {
+  version = "6.12.0";
+  name = "csound-manual-${version}";
+  
+  src = fetchurl {
+    url = "https://github.com/csound/manual/archive/${version}.tar.gz";
+    sha256 = "1v1scp468rnfbcajnp020kdj8zigimc2mbcwzxxqi8sf8paccdrp";
+  };
+
+
+  prePatch = ''
+    substituteInPlace manual.xml \
+      --replace "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
+                "${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd"
+  '';
+
+  nativeBuildInputs = [ libxslt.bin ];
+
+  buildInputs = [ docbook_xsl python pygments ];
+
+  buildPhase = ''
+    make XSL_BASE_PATH=${docbook_xsl}/share/xml/docbook-xsl html-dist
+  '';
+
+  installPhase = ''
+    mkdir -p $out/share/doc/csound
+    cp -r ./html $out/share/doc/csound
+  '';
+
+  meta = {
+    description = "The Csound Canonical Reference Manual";
+    homepage = "https://github.com/csound/manual";
+    license = stdenv.lib.licenses.fdl12Plus;
+    maintainers = [ stdenv.lib.maintainers.hlolli ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}
+