diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-03-08 20:31:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 20:31:41 +0100 |
commit | 7830dba77b51a68448ec0dd6742bd37aa7c1f1f6 (patch) | |
tree | d74520fd21496da2f8b2949385a85820e328eb1e /pkgs/by-name/li | |
parent | 9c9d49433fff51368a5de5c1e64474e0ec7d264d (diff) | |
parent | 016a436059667c68a886639fa6b77e27e9a2bd85 (diff) | |
download | nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar.gz nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar.bz2 nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar.lz nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar.xz nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.tar.zst nixlib-7830dba77b51a68448ec0dd6742bd37aa7c1f1f6.zip |
Merge pull request #282099 from vifino/libyang-2.1.148
libyang: move to by-name; 2.1.128 -> 2.1.148
Diffstat (limited to 'pkgs/by-name/li')
-rw-r--r-- | pkgs/by-name/li/libyang/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libyang/package.nix b/pkgs/by-name/li/libyang/package.nix new file mode 100644 index 000000000000..6e3e3d841e64 --- /dev/null +++ b/pkgs/by-name/li/libyang/package.nix @@ -0,0 +1,57 @@ +{ stdenv +, lib +, fetchFromGitHub + +# build time +, cmake +, pkg-config + +# run time +, pcre2 + +# update script +, gitUpdater +}: + +stdenv.mkDerivation rec { + pname = "libyang"; + version = "2.1.148"; + + src = fetchFromGitHub { + owner = "CESNET"; + repo = "libyang"; + rev = "v${version}"; + hash = "sha256-uYZJo8lUv6tq0MRRJvbTS/8t1eZNGqcMb5k5sVCwMJM="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + pcre2 + ]; + + cmakeFlags = [ + "-DCMAKE_INSTALL_LIBDIR=lib" + "-DCMAKE_INSTALL_INCLUDEDIR=include" + ]; + + passthru.updateScript = gitUpdater { + rev-prefix = "v"; + }; + + meta = with lib; { + description = "YANG data modelling language parser and toolkit"; + longDescription = '' + libyang is a YANG data modelling language parser and toolkit written (and + providing API) in C. The library is used e.g. in libnetconf2, Netopeer2, + sysrepo or FRRouting projects. + ''; + homepage = "https://github.com/CESNET/libyang"; + license = with licenses; [ bsd3 ]; + platforms = platforms.unix; + maintainers = with maintainers; [ woffs ]; + }; +} |