ptcollab: 0.3.5.1 -> 0.4.0

This commit is contained in:
OPNA2608 2021-04-17 23:07:53 +02:00
parent d89513b96a
commit 3ff497aaab

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";