Merge pull request #152385 from mikroskeem/ripcord-darwin
ripcord: add darwin app bundle
This commit is contained in:
commit
0e047e8a29
3 changed files with 37 additions and 1 deletions
|
@ -0,0 +1,33 @@
|
|||
{ stdenvNoCC, lib, fetchzip }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "ripcord";
|
||||
version = "0.4.29";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://cancel.fm/dl/Ripcord_Mac_${version}.zip";
|
||||
sha256 = "sha256-v8iydjLBjFN5LuctpcBpEkhSICxPhLKzLjSASWtsQok=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
dontFixup = true; # modification is not allowed by the license https://cancel.fm/ripcord/shareware-redistribution/
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications
|
||||
cp -r $src/Ripcord.app $out/Applications/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Desktop chat client for Slack and Discord";
|
||||
homepage = "https://cancel.fm/ripcord/";
|
||||
# See: https://cancel.fm/ripcord/shareware-redistribution/
|
||||
license = licenses.unfreeRedistributable;
|
||||
maintainers = with maintainers; [ mikroskeem ];
|
||||
platforms = [ "x86_64-darwin" ];
|
||||
};
|
||||
}
|
0
pkgs/applications/networking/instant-messengers/ripcord/default.nix
Executable file → Normal file
0
pkgs/applications/networking/instant-messengers/ripcord/default.nix
Executable file → Normal file
|
@ -28467,7 +28467,10 @@ with pkgs;
|
|||
|
||||
ries = callPackage ../applications/science/math/ries { };
|
||||
|
||||
ripcord = qt5.callPackage ../applications/networking/instant-messengers/ripcord { };
|
||||
ripcord = if stdenv.isLinux then
|
||||
qt5.callPackage ../applications/networking/instant-messengers/ripcord { }
|
||||
else
|
||||
callPackage ../applications/networking/instant-messengers/ripcord/darwin.nix { };
|
||||
|
||||
ripser = callPackage ../applications/science/math/ripser { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue