Files
nixpkgs/pkgs/by-name/pt/ptcollab/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
nix-update-script,
libsForQt5,
libvorbis,
pkg-config,
rtmidi,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ptcollab";
version = "0.6.4.9";
src = fetchFromGitHub {
owner = "yuxshao";
repo = "ptcollab";
rev = "v${finalAttrs.version}";
hash = "sha256-1fVhimwBAYtC+HnuxA7ywfEnVlqHnlzwfKT9+H/ZG0k=";
};
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";
mainProgram = "ptcollab";
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;
};
})