2024-04-21 15:54:59 +00:00
|
|
|
{ stdenv
|
2021-04-18 02:13:31 +00:00
|
|
|
, lib
|
2020-11-06 00:33:48 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-18 02:13:31 +00:00
|
|
|
, nix-update-script
|
2024-04-21 15:54:59 +00:00
|
|
|
, libsForQt5
|
2023-07-15 17:15:38 +00:00
|
|
|
, libvorbis
|
2021-06-28 23:13:55 +00:00
|
|
|
, pkg-config
|
2021-04-18 02:13:31 +00:00
|
|
|
, rtmidi
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-11-06 00:33:48 +00:00
|
|
|
pname = "ptcollab";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.6.4.8";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yuxshao";
|
|
|
|
repo = "ptcollab";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-9u2K79QJRfYKL66e1lsRrQMEqmKTWbK+ucal3/u4rP4=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ (with libsForQt5; [
|
2023-07-15 17:15:38 +00:00
|
|
|
qmake
|
|
|
|
qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
]);
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libvorbis
|
2024-04-21 15:54:59 +00:00
|
|
|
rtmidi
|
|
|
|
] ++ (with libsForQt5; [
|
2023-07-15 17:15:38 +00:00
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
2024-04-21 15:54:59 +00:00
|
|
|
]);
|
2021-04-18 02:13:31 +00:00
|
|
|
|
2021-12-24 04:21:11 +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-18 02:13:31 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-04-18 02:13:31 +00:00
|
|
|
};
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-06 00:33:48 +00:00
|
|
|
description = "Experimental pxtone editor where you can collaborate with friends";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ptcollab";
|
2020-11-06 00:33:48 +00:00
|
|
|
homepage = "https://yuxshao.github.io/ptcollab/";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/yuxshao/ptcollab/releases/tag/v${finalAttrs.version}";
|
2020-11-06 00:33:48 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|