2020-11-03 20:24:10 +00:00
|
|
|
{ mkDerivation
|
2021-04-17 21:07:53 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-11-03 20:24:10 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-17 21:07:53 +00:00
|
|
|
, nix-update-script
|
2023-07-03 10:32:14 +00:00
|
|
|
, libvorbis
|
2021-06-16 08:52:00 +00:00
|
|
|
, pkg-config
|
2023-07-03 10:32:14 +00:00
|
|
|
, qmake
|
2020-11-03 20:24:10 +00:00
|
|
|
, qtbase
|
2023-07-03 10:32:14 +00:00
|
|
|
, qttools
|
2020-11-03 20:24:10 +00:00
|
|
|
, qtmultimedia
|
2021-04-17 21:07:53 +00:00
|
|
|
, rtmidi
|
2020-11-03 20:24:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "ptcollab";
|
2023-07-08 05:29:02 +00:00
|
|
|
version = "0.6.4.7";
|
2020-11-03 20:24:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yuxshao";
|
|
|
|
repo = "ptcollab";
|
|
|
|
rev = "v${version}";
|
2023-07-08 05:29:02 +00:00
|
|
|
hash = "sha256-KYNov/HbKM2d8VVO8iyWA3XWFDE9iWeKkRCNC1xlPNw=";
|
2020-11-03 20:24:10 +00:00
|
|
|
};
|
|
|
|
|
2023-07-03 10:32:14 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libvorbis
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
rtmidi
|
|
|
|
];
|
2021-04-17 21:07:53 +00:00
|
|
|
|
2021-12-23 23:16:49 +00:00
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
# Move appbundles to Applications before wrapping happens
|
|
|
|
mkdir $out/Applications
|
|
|
|
mv $out/{bin,Applications}/ptcollab.app
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
# Link to now-wrapped binary inside appbundle
|
|
|
|
ln -s $out/{Applications/ptcollab.app/Contents/MacOS,bin}/ptcollab
|
|
|
|
'';
|
|
|
|
|
2021-04-17 21:07:53 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-04-17 21:07:53 +00:00
|
|
|
};
|
2020-11-03 20:24:10 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 20:24:10 +00:00
|
|
|
description = "Experimental pxtone editor where you can collaborate with friends";
|
|
|
|
homepage = "https://yuxshao.github.io/ptcollab/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|