mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ mkDerivation
|
|
, lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, qmake
|
|
, pkg-config
|
|
, qtbase
|
|
, qtmultimedia
|
|
, libvorbis
|
|
, rtmidi
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "ptcollab";
|
|
version = "0.6.4.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yuxshao";
|
|
repo = "ptcollab";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-O7CNPMS0eRcqt2xAtyEFyLSV8U2xbxuV1DpBxZAFwQs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
|
|
|
buildInputs = [ qtbase qtmultimedia libvorbis rtmidi ];
|
|
|
|
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/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|