summary refs log tree commit diff
path: root/pkgs/applications/audio/musescore
diff options
context:
space:
mode:
authorEric Bailey <eric@ericb.me>2017-02-26 02:59:20 -0600
committerEric Bailey <eric@ericb.me>2017-02-27 20:58:22 -0600
commit22404a068fa3ce2ed28b81a38d082a412eb0a91a (patch)
tree3a8a363dacbf95a2ab11262a61a1a643f521f8e9 /pkgs/applications/audio/musescore
parent52507b3a9b2f9055594886250994a73871061ca0 (diff)
downloadnixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar.gz
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar.bz2
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar.lz
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar.xz
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.tar.zst
nixlib-22404a068fa3ce2ed28b81a38d082a412eb0a91a.zip
musescore: add darwin-specific package
This is basically a clone of the Homebrew cask version:
https://github.com/caskroom/homebrew-cask/blob/master/Casks/musescore.rb
Diffstat (limited to 'pkgs/applications/audio/musescore')
-rw-r--r--pkgs/applications/audio/musescore/darwin.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/audio/musescore/darwin.nix b/pkgs/applications/audio/musescore/darwin.nix
new file mode 100644
index 000000000000..160e84e10a1a
--- /dev/null
+++ b/pkgs/applications/audio/musescore/darwin.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, undmg }:
+
+let
+  major = "2";
+  minor = "0.3";
+  patch = "1";
+  appName = "MuseScore ${major}";
+in
+
+stdenv.mkDerivation rec {
+  name = "musescore-darwin-${version}";
+  version = "${major}.${minor}.${patch}";
+
+  src = fetchurl {
+    url =  "ftp://ftp.osuosl.org/pub/musescore/releases/MuseScore-${major}.${minor}/MuseScore-${version}.dmg";
+    sha256 = "0a9v2nc7sx2az7xpd9i7b84m7xk9zcydfpis5fj334r5yqds4rm1";
+  };
+
+  buildInputs = [ undmg ];
+  installPhase = ''
+    mkdir -p "$out/Applications/${appName}.app"
+    cp -R . "$out/Applications/${appName}.app"
+    chmod a+x "$out/Applications/${appName}.app/Contents/MacOS/mscore"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Music notation and composition software";
+    homepage = https://musescore.org/;
+    license = licenses.gpl2;
+    platforms = platforms.darwin;
+    maintainers = with maintainers; [ yurrriq ];
+    repositories.git = https://github.com/musescore/MuseScore;
+  };
+}