From b2317a0b870a6c80874b08b533416f7428a2c1ad Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Sun, 27 May 2018 09:12:52 -0700 Subject: [PATCH] libversion: init at 2.6.0 --- .../libraries/libversion/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/libversion/default.nix diff --git a/pkgs/development/libraries/libversion/default.nix b/pkgs/development/libraries/libversion/default.nix new file mode 100644 index 000000000000..6e7005195bf0 --- /dev/null +++ b/pkgs/development/libraries/libversion/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, cmake }: + +let + version = "2.6.0"; +in +stdenv.mkDerivation { + name = "libversion-${version}"; + + src = fetchFromGitHub { + owner = "repology"; + repo = "libversion"; + rev = version; + sha256 = "0krhfycva3l4rhac5kx6x1a6fad594i9i77vy52rwn37j62bm601"; + }; + + nativeBuildInputs = [ cmake ]; + + doCheck = true; + checkTarget = "test"; + + meta = with stdenv.lib; { + description = "Advanced version string comparison library"; + homepage = https://github.com/repology/libversion; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ ryantm ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34fd1a7672be..5c4158d894d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10562,6 +10562,8 @@ with pkgs; libvdpau-va-gl = callPackage ../development/libraries/libvdpau-va-gl { }; + libversion = callPackage ../development/libraries/libversion { }; + libvirt = callPackage ../development/libraries/libvirt { }; libvirt-glib = callPackage ../development/libraries/libvirt-glib { };