abaddon: init at 0.1.10

This commit is contained in:
GenericNerdyUsername 2023-04-21 12:53:50 +01:00 committed by Anderson Torres
parent 5a8a8e0d9f
commit bc053c32fc
2 changed files with 79 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -29040,6 +29040,8 @@ with pkgs;
program = "pdfstudioviewer";
};
abaddon = callPackage ../applications/networking/instant-messengers/abaddon { };
aeolus = callPackage ../applications/audio/aeolus { };
aeolus-stops = callPackage ../applications/audio/aeolus/stops.nix { };