diff options
author | Florian Klink <flokli@flokli.de> | 2018-05-30 01:31:16 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2018-06-11 18:13:31 +0200 |
commit | 1034ef2193bbdb5624341a92fc923fa20142e3a5 (patch) | |
tree | c176cf10f0bab976488e44c4945a2c9eaab95b7f /pkgs | |
parent | f78ca4715b39c0c4924451d1e5bf9e497604a77f (diff) | |
download | nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar.gz nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar.bz2 nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar.lz nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar.xz nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.tar.zst nixpkgs-1034ef2193bbdb5624341a92fc923fa20142e3a5.zip |
libndctl: init at 60.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libndctl/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libndctl/default.nix b/pkgs/development/libraries/libndctl/default.nix new file mode 100644 index 00000000000..fa48fc390aa --- /dev/null +++ b/pkgs/development/libraries/libndctl/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, autoconf, automake, asciidoc, docbook_xsl, docbook_xml_dtd_45, libxslt, xmlto, pkgconfig, json_c, kmod, which, systemd, utillinux +}: + +let + version = "60.3"; +in stdenv.mkDerivation rec { + name = "libndctl-${version}"; + + src = fetchFromGitHub { + owner = "pmem"; + repo = "ndctl"; + rev = "v${version}"; + sha256 = "0w19yh6f9skf5zy4bhdjlrn3wdx5xx9cq8j6h04cmw4nla6zj9ar"; + }; + + outputs = [ "out" "man" "dev" ]; + + nativeBuildInputs = [ + autoreconfHook asciidoc pkgconfig xmlto docbook_xml_dtd_45 docbook_xsl libxslt + ]; + + buildInputs = [ + json_c kmod systemd utillinux + ]; + + preAutoreconf = '' + substituteInPlace configure.ac --replace "which" "${which}/bin/which" + substituteInPlace git-version --replace /bin/bash ${stdenv.shell} + substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell} + echo "m4_define([GIT_VERSION], [${version}])" > version.m4; + ''; + + meta = with stdenv.lib; { + description = "Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel"; + homepage = https://github.com/pmem/ndctl; + license = licenses.lgpl21; + maintainers = with maintainers; []; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5ad6cda7b11..4128933ad15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10354,6 +10354,8 @@ with pkgs; libmx = callPackage ../development/libraries/libmx { }; + libndctl = callPackage ../development/libraries/libndctl { }; + libnet = callPackage ../development/libraries/libnet { }; libnetfilter_conntrack = callPackage ../development/libraries/libnetfilter_conntrack { }; |