pinact: 1.0.0 -> 1.1.2 and set CGO_ENABLED=0 (#368078)
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / ripcord / darwin.nix
blob9fccad174317a60cb16cfef2a54b3556c2f0dfb2
2   stdenvNoCC,
3   lib,
4   fetchzip,
5 }:
7 stdenvNoCC.mkDerivation rec {
8   pname = "ripcord";
9   version = "0.4.29";
11   src = fetchzip {
12     url = "https://cancel.fm/dl/Ripcord_Mac_${version}.zip";
13     sha256 = "sha256-v8iydjLBjFN5LuctpcBpEkhSICxPhLKzLjSASWtsQok=";
14     stripRoot = false;
15   };
17   dontBuild = true;
18   dontFixup = true; # modification is not allowed by the license https://cancel.fm/ripcord/shareware-redistribution/
20   installPhase = ''
21     runHook preInstall
23     mkdir -p $out/Applications
24     cp -r $src/Ripcord.app $out/Applications/
26     runHook postInstall
27   '';
29   meta = with lib; {
30     description = "Desktop chat client for Slack and Discord";
31     homepage = "https://cancel.fm/ripcord/";
32     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
33     # See: https://cancel.fm/ripcord/shareware-redistribution/
34     license = licenses.unfreeRedistributable;
35     maintainers = with maintainers; [ mikroskeem ];
36     platforms = [ "x86_64-darwin" ];
37   };