diff --git a/default.nix b/default.nix index f447cb5..83596ab 100644 --- a/default.nix +++ b/default.nix @@ -3,6 +3,8 @@ self: super: { buildNimblePackage = super.callPackage ./pkgs/nim-packages/generic.nix { }; + cadet-gtk = super.callPackage ./pkgs/cadet-gtk/default.nix { }; + c2nim = super.callPackage ./pkgs/nim-packages/c2nim.nix { }; freetz-tools = super.callPackage ./pkgs/freetz-tools/default.nix { }; diff --git a/pkgs/cadet-gtk/default.nix b/pkgs/cadet-gtk/default.nix new file mode 100644 index 0000000..24567b9 --- /dev/null +++ b/pkgs/cadet-gtk/default.nix @@ -0,0 +1,47 @@ +{ stdenv +, cmake +, fetchFromGitLab +, jansson +, libextractor +, libgcrypt +, libhandy +, gnunet +, gtk3 +, pkgconfig +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "cadet-gtk"; + version = "0.5.0"; + + src = fetchFromGitLab { + owner = "TheJackiMonster"; + repo = "cadet-gtk"; + rev = "v${version}"; + sha256 = "09a3ga5gfvrdq0z4325p7ndb78mg3lkc021c8bhkf6dxd76qm7r5"; + }; + + nativeBuildInputs = [ + cmake + pkgconfig + wrapGAppsHook + ]; + + buildInputs = [ + jansson + libextractor + libgcrypt + libhandy + gnunet + gtk3 + ]; + + meta = with stdenv.lib; { + description = "A GTK based GUI for the CADET subsystem of GNUnet."; + homepage = https://gitlab.com/TheJackiMonster/cadet-gtk; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ royneary ]; + platforms = platforms.linux; + }; +}