Merge pull request #119751 from OPNA2608/update/ptcollab-0.4.0/21.05

ptcollab: 0.3.5.1 -> 0.4.0
This commit is contained in:
Sandro 2021-04-17 23:47:39 +02:00 committed by GitHub
commit cb0f8c9fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,40 @@
{ mkDerivation
, lib, stdenv
, lib
, stdenv
, fetchFromGitHub
, nix-update-script
, qmake
, qtbase
, qtmultimedia
, libvorbis
, rtmidi
}:
mkDerivation rec {
pname = "ptcollab";
version = "0.3.5.1";
version = "0.4.0";
src = fetchFromGitHub {
owner = "yuxshao";
repo = "ptcollab";
rev = "v${version}";
sha256 = "1ahfxjm1chz8k65rs7rgn4s2bgippq58fjcxl8fr21pzn718wqf1";
sha256 = "1yfnf47saxxj17x0vyxihr343kp7gz3fashzky79j80sqlm6ng85";
};
postPatch = ''
substituteInPlace src/editor.pro \
--replace '/usr/include/rtmidi' '${rtmidi}/include/rtmidi'
'';
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase qtmultimedia libvorbis ];
buildInputs = [ qtbase qtmultimedia libvorbis rtmidi ];
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
description = "Experimental pxtone editor where you can collaborate with friends";