tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libndctl: init at 60.3
Florian Klink
7 years ago
1034ef21
f78ca471
+42
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libndctl
default.nix
top-level
all-packages.nix
+40
pkgs/development/libraries/libndctl/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, autoconf, automake, asciidoc, docbook_xsl, docbook_xml_dtd_45, libxslt, xmlto, pkgconfig, json_c, kmod, which, systemd, utillinux
2
2
+
}:
3
3
+
4
4
+
let
5
5
+
version = "60.3";
6
6
+
in stdenv.mkDerivation rec {
7
7
+
name = "libndctl-${version}";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "pmem";
11
11
+
repo = "ndctl";
12
12
+
rev = "v${version}";
13
13
+
sha256 = "0w19yh6f9skf5zy4bhdjlrn3wdx5xx9cq8j6h04cmw4nla6zj9ar";
14
14
+
};
15
15
+
16
16
+
outputs = [ "out" "man" "dev" ];
17
17
+
18
18
+
nativeBuildInputs = [
19
19
+
autoreconfHook asciidoc pkgconfig xmlto docbook_xml_dtd_45 docbook_xsl libxslt
20
20
+
];
21
21
+
22
22
+
buildInputs = [
23
23
+
json_c kmod systemd utillinux
24
24
+
];
25
25
+
26
26
+
preAutoreconf = ''
27
27
+
substituteInPlace configure.ac --replace "which" "${which}/bin/which"
28
28
+
substituteInPlace git-version --replace /bin/bash ${stdenv.shell}
29
29
+
substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell}
30
30
+
echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
31
31
+
'';
32
32
+
33
33
+
meta = with stdenv.lib; {
34
34
+
description = "Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel";
35
35
+
homepage = https://github.com/pmem/ndctl;
36
36
+
license = licenses.lgpl21;
37
37
+
maintainers = with maintainers; [];
38
38
+
platforms = platforms.linux;
39
39
+
};
40
40
+
}
+2
pkgs/top-level/all-packages.nix
···
10354
10354
10355
10355
libmx = callPackage ../development/libraries/libmx { };
10356
10356
10357
10357
+
libndctl = callPackage ../development/libraries/libndctl { };
10358
10358
+
10357
10359
libnet = callPackage ../development/libraries/libnet { };
10358
10360
10359
10361
libnetfilter_conntrack = callPackage ../development/libraries/libnetfilter_conntrack { };