Files
nixpkgs/pkgs/by-name/qu/quiet/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

74 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
appimageTools,
makeWrapper,
_7zz,
}:
let
pname = "quiet";
version = "6.0.0";
meta = {
description = "Private, p2p alternative to Slack and Discord built on Tor & IPFS";
homepage = "https://github.com/TryQuiet/quiet";
changelog = "https://github.com/TryQuiet/quiet/releases/tag/@quiet/desktop@${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ kashw2 ];
};
linux = appimageTools.wrapType2 {
inherit pname version;
src = fetchurl {
url = "https://github.com/TryQuiet/quiet/releases/download/@quiet/desktop@${version}/Quiet-${version}.AppImage";
hash = "sha256-YIkbS3L6DIof9gsgHKaguHIwGggVLjQXPM8o7810Wgs=";
};
meta = meta // {
platforms = lib.platforms.linux;
};
};
darwin = stdenv.mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/TryQuiet/quiet/releases/download/@quiet/desktop@${version}/Quiet-${version}.dmg";
hash = "sha256-B1rT+6U0gjScr1FPuh3xGxkpfumT/8feTJbEbCgXPpo=";
};
nativeBuildInputs = [
_7zz
makeWrapper
];
sourceRoot = "Quiet ${version}";
unpackPhase = ''
runHook preUnpack
7zz x $src -x!Quiet\ ${version}/Applications
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/{Applications,bin}
mv Quiet.app $out/Applications
makeWrapper $out/Applications/Quiet.app/Contents/MacOS/Quiet $out/bin/${pname}
runHook postInstall
'';
meta = meta // {
platforms = lib.platforms.darwin;
};
};
in
if stdenv.hostPlatform.isDarwin then darwin else linux