From 0a67210453cfb72d4db66d2599a8605f3327d235 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 2 Dec 2023 18:36:41 +0100 Subject: [PATCH] librda: init at 0.0.5-unstable-2023-09-15 --- pkgs/by-name/li/librda/package.nix | 61 ++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 pkgs/by-name/li/librda/package.nix diff --git a/pkgs/by-name/li/librda/package.nix b/pkgs/by-name/li/librda/package.nix new file mode 100644 index 000000000000..793783a2bae9 --- /dev/null +++ b/pkgs/by-name/li/librda/package.nix @@ -0,0 +1,61 @@ +{ stdenv +, lib +, fetchFromGitHub +, testers +, autoreconfHook +, glib +, gobject-introspection +, gtk3 +, intltool +, pkg-config +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "librda"; + version = "0.0.5-unstable-2023-09-15"; + + src = fetchFromGitHub { + owner = "ArcticaProject"; + repo = "librda"; + rev = "d7ed1368145e39b0c761947a32fa50493e70f554"; + hash = "sha256-k6dmwIndLy9S7f0AU7FIm1S7MYfyvDuhMLMuNgHGsYo="; + }; + + outputs = [ + "out" + "dev" + "bin" + ]; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + glib + gobject-introspection + intltool + pkg-config + ]; + + buildInputs = [ + gtk3 + ]; + + enableParallelBuilding = true; + + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + + meta = with lib; { + description = "Remote Desktop Awareness Shared Library"; + homepage = "https://github.com/ArcticaProject/librda"; + license = licenses.gpl2Plus; + mainProgram = "rdacheck"; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.linux; + pkgConfigModules = [ + "rda" + ]; + }; +})