11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-9u2K79QJRfYKL66e1lsRrQMEqmKTWbK+ucal3/u4rP4=";
24 ] ++ (with libsForQt5; [
33 ] ++ (with libsForQt5; [
38 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
39 # Move appbundles to Applications before wrapping happens
40 mkdir $out/Applications
41 mv $out/{bin,Applications}/ptcollab.app
44 postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
45 # Link to now-wrapped binary inside appbundle
46 ln -s $out/{Applications/ptcollab.app/Contents/MacOS,bin}/ptcollab
50 updateScript = nix-update-script { };
54 description = "Experimental pxtone editor where you can collaborate with friends";
55 mainProgram = "ptcollab";
56 homepage = "https://yuxshao.github.io/ptcollab/";
57 changelog = "https://github.com/yuxshao/ptcollab/releases/tag/v${finalAttrs.version}";
58 license = licenses.mit;
59 maintainers = with maintainers; [ OPNA2608 ];
60 platforms = platforms.all;