diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/pt/ptcollab/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/pt/ptcollab/package.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/pt/ptcollab/package.nix b/nixpkgs/pkgs/by-name/pt/ptcollab/package.nix new file mode 100644 index 000000000000..f03d89e7c490 --- /dev/null +++ b/nixpkgs/pkgs/by-name/pt/ptcollab/package.nix @@ -0,0 +1,61 @@ +{ stdenv +, lib +, fetchFromGitHub +, nix-update-script +, libsForQt5 +, libvorbis +, pkg-config +, rtmidi +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "ptcollab"; + version = "0.6.4.8"; + + src = fetchFromGitHub { + owner = "yuxshao"; + repo = "ptcollab"; + rev = "v${finalAttrs.version}"; + hash = "sha256-9u2K79QJRfYKL66e1lsRrQMEqmKTWbK+ucal3/u4rP4="; + }; + + nativeBuildInputs = [ + pkg-config + ] ++ (with libsForQt5; [ + qmake + qttools + wrapQtAppsHook + ]); + + buildInputs = [ + libvorbis + rtmidi + ] ++ (with libsForQt5; [ + qtbase + qtmultimedia + ]); + + 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 + ''; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = with lib; { + description = "Experimental pxtone editor where you can collaborate with friends"; + homepage = "https://yuxshao.github.io/ptcollab/"; + changelog = "https://github.com/yuxshao/ptcollab/releases/tag/v${finalAttrs.version}"; + license = licenses.mit; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.all; + }; +}) |