musescore (darwin): 2.0.3 -> 2.1 (#26297)

This commit is contained in:
Eric Bailey 2017-11-13 16:47:28 -06:00 committed by Renaud
parent c886b170b1
commit 51a8584252

View File

@ -1,19 +1,19 @@
{ stdenv, fetchurl, undmg }:
{ stdenv, lib, fetchurl, undmg }:
let
major = "2";
minor = "0.3";
patch = "1";
appName = "MuseScore ${major}";
versionComponents = [ "2" "1" ];
appName = "MuseScore ${builtins.head versionComponents}";
in
with lib;
stdenv.mkDerivation rec {
name = "musescore-darwin-${version}";
version = "${major}.${minor}.${patch}";
version = "${concatStringsSep "." versionComponents}";
src = fetchurl {
url = "ftp://ftp.osuosl.org/pub/musescore/releases/MuseScore-${major}.${minor}/MuseScore-${version}.dmg";
sha256 = "0a9v2nc7sx2az7xpd9i7b84m7xk9zcydfpis5fj334r5yqds4rm1";
url = "ftp://ftp.osuosl.org/pub/musescore/releases/MuseScore-${concatStringsSep "." (take 3 versionComponents)}/MuseScore-${version}.dmg";
sha256 = "19xkaxlkbrhvfip6n3iw6q7463ngr6y5gfisrpjqg2xl2igyl795";
};
buildInputs = [ undmg ];