3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/ptcollab/default.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2020-11-03 20:24:10 +00:00
{ mkDerivation
2021-04-17 22:07:53 +01:00
, lib
, stdenv
2020-11-03 20:24:10 +00:00
, fetchFromGitHub
2021-04-17 22:07:53 +01:00
, nix-update-script
2020-11-03 20:24:10 +00:00
, qmake
2021-06-16 09:52:00 +01:00
, pkg-config
2020-11-03 20:24:10 +00:00
, qtbase
, qtmultimedia
, libvorbis
2021-04-17 22:07:53 +01:00
, rtmidi
2020-11-03 20:24:10 +00:00
}:
mkDerivation rec {
pname = "ptcollab";
2022-01-26 07:46:04 +00:00
version = "0.6.0.2";
2020-11-03 20:24:10 +00:00
src = fetchFromGitHub {
owner = "yuxshao";
repo = "ptcollab";
rev = "v${version}";
2022-01-26 07:46:04 +00:00
sha256 = "sha256-9goELqV7GP2/8w3Tw4Gph0UBgR/2T+wo2g+lhrQG4tA=";
2020-11-03 20:24:10 +00:00
};
2021-06-16 09:52:00 +01:00
nativeBuildInputs = [ qmake pkg-config ];
2020-11-03 20:24:10 +00:00
2021-04-17 22:07:53 +01:00
buildInputs = [ qtbase qtmultimedia libvorbis rtmidi ];
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 22:07:53 +01:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
2020-11-03 20:24:10 +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;
};
}