nixpkgs/pkgs/by-name/ke/keet/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
864 B
Nix
Raw Normal View History

{ lib, appimageTools, fetchzip }:
2022-12-31 14:57:53 +00:00
let
pname = "keet";
version = "2.2.0";
2022-12-31 14:57:53 +00:00
src = fetchzip {
url = "https://keet.io/downloads/${version}/Keet-x64.tar.gz";
hash = "sha256-Sd2aCUvgxdbCb8MtWMcznX2efmL1h9wLT29GG7t3Gzc=";
2022-12-31 14:57:53 +00:00
};
appimageContents = appimageTools.extract {
inherit pname version;
src = "${src}/Keet.AppImage";
};
2022-12-31 14:57:53 +00:00
in appimageTools.wrapType2 {
inherit pname version;
src = "${src}/Keet.AppImage";
extraPkgs = pkgs: with pkgs; [
gtk4
];
2022-12-31 14:57:53 +00:00
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/Keet.desktop -t $out/share/applications
cp -r ${appimageContents}/*.png $out/share
2022-12-31 14:57:53 +00:00
'';
meta = with lib; {
description = "Peer-to-Peer Chat";
homepage = "https://keet.io";
license = licenses.unfree;
maintainers = with maintainers; [ extends ];
platforms = [ "x86_64-linux" ];
};
}