diff options
author | GenericNerdyUsername <genericnerdyusername@proton.me> | 2023-04-21 12:53:50 +0100 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-05-15 07:55:29 -0300 |
commit | bc053c32fcee4aeda68b9168085b79fc57c126e3 (patch) | |
tree | a10380044d1541bc5e49aaee7b0d59238772a035 /pkgs/applications/networking/instant-messengers/abaddon | |
parent | 5a8a8e0d9f0731cc4cf6a561d72b017c38eb2ae3 (diff) |
abaddon: init at 0.1.10
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/abaddon')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/abaddon/default.nix | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/abaddon/default.nix b/pkgs/applications/networking/instant-messengers/abaddon/default.nix new file mode 100644 index 000000000000..601720345eb4 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/abaddon/default.nix @@ -0,0 +1,77 @@ +{ lib +, fetchFromGitHub +, stdenv +, cmake +, copyDesktopItems +, makeDesktopItem +, makeWrapper +, pkg-config +, curl +, gtkmm3 +, libhandy +, libsecret +, nlohmann_json +, sqlite +}: + +stdenv.mkDerivation rec { + pname = "abaddon"; + version = "0.1.10"; + + src = fetchFromGitHub { + owner = "uowuo"; + repo = "abaddon"; + rev = "v${version}"; + hash = "sha256-84DrPx0e3pZjg87dHZO4y/z7KfIYNyAibE7/J7oYwXA="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + cmake + copyDesktopItems + makeWrapper + pkg-config + ]; + + buildInputs = [ + curl + gtkmm3 + libhandy + libsecret + nlohmann_json + sqlite + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/abaddon + cp -r ../res/{css,res} $out/share/abaddon + mkdir $out/bin + cp abaddon $out/bin + wrapProgram $out/bin/abaddon \ + --chdir $out/share/abaddon + + runHook postInstall + ''; + + desktopItems = [ + (makeDesktopItem { + name = pname; + exec = pname; + desktopName = "Abaddon"; + genericName = meta.description; + startupWMClass = pname; + categories = [ "Network" "InstantMessaging" ]; + mimeTypes = [ "x-scheme-handler/discord" ]; + }) + ]; + + meta = with lib; { + description = "A discord client reimplementation, written in C++"; + homepage = "https://github.com/uowuo/abaddon"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ genericnerdyusername ]; + platforms = lib.intersectLists lib.platforms.x86_64 lib.platforms.linux; + }; +} |