nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 863 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 cmake, 6 libssh, 7 openssl, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "rtrlib"; 12 version = "0.8.0"; 13 14 src = fetchFromGitHub { 15 repo = "rtrlib"; 16 owner = "rtrlib"; 17 rev = "v${finalAttrs.version}"; 18 sha256 = "sha256-ISb4ojcDvXY/88GbFMrA5V5+SGE6CmE5D+pokDTwotQ="; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 buildInputs = [ 23 libssh 24 openssl 25 ]; 26 27 cmakeFlags = [ 28 "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" 29 ]; 30 31 postFixup = '' 32 substituteInPlace "$out"/lib/pkgconfig/rtrlib.pc \ 33 --replace '=''${prefix}//' '=/' 34 ''; 35 36 meta = { 37 description = "Open-source C implementation of the RPKI/Router Protocol client"; 38 homepage = "https://github.com/rtrlib/rtrlib"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ Anillc ]; 41 platforms = lib.platforms.all; 42 }; 43})