diff options
Diffstat (limited to 'pkgs/applications/audio/openutau/default.nix')
-rw-r--r-- | pkgs/applications/audio/openutau/default.nix | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/pkgs/applications/audio/openutau/default.nix b/pkgs/applications/audio/openutau/default.nix index 5a25843d2782..ca9dd2f550da 100644 --- a/pkgs/applications/audio/openutau/default.nix +++ b/pkgs/applications/audio/openutau/default.nix @@ -2,7 +2,6 @@ , stdenv , buildDotnetModule , fetchFromGitHub -, fetchpatch , dotnetCorePackages , dbus , fontconfig @@ -14,28 +13,15 @@ buildDotnetModule rec { pname = "OpenUtau"; - version = "0.1.158"; + version = "0.1.327"; src = fetchFromGitHub { owner = "stakira"; repo = "OpenUtau"; rev = "build/${version}"; - hash = "sha256-/+hlL2sj/juzWrDcb5dELp8Zdg688XK8OnjKz20rx/M="; + hash = "sha256-Bss32Fk4yBEFqaIxT2dfdvWXz09sO6akiitDQBXoSvY="; }; - patches = [ - # Needed until stakira/OpenUtau#836 is merged and released to fix crashing issues. See stakira/OpenUtau#822 - (fetchpatch { - name = "openutau-update-avalonia-to-11.0.4.patch"; - url = "https://github.com/stakira/OpenUtau/commit/0130d7387fb626a72850305dc61d7c175caccc0f.diff"; - hash = "sha256-w9PLnfiUtiKY/8+y4qqINeEul4kP72nKEVc5c8p2g7c="; - # It looks like fetched files use CRLF but patch comes back with LF - decode = "sed -e 's/$/\\r/'"; - }) - ]; - # Needs binary for above patch due to CRLF shenanigans otherwise being ignored - patchFlags = [ "-p1" "--binary" ]; - dotnet-sdk = dotnetCorePackages.sdk_7_0; dotnet-runtime = dotnetCorePackages.runtime_7_0; @@ -58,11 +44,15 @@ buildDotnetModule rec { # socket cannot bind to localhost on darwin for tests doCheck = !stdenv.isDarwin; - # needed until upstream bumps to dotnet 7 + # net7.0 replacement needed until upstream bumps to dotnet 7 postPatch = '' substituteInPlace OpenUtau/OpenUtau.csproj OpenUtau.Test/OpenUtau.Test.csproj --replace \ '<TargetFramework>net6.0</TargetFramework>' \ '<TargetFramework>net7.0</TargetFramework>' + + substituteInPlace OpenUtau/Program.cs --replace \ + '/usr/bin/fc-match' \ + '${lib.getExe' fontconfig "fc-match"}' ''; # need to make sure proprietary worldline resampler is copied |