libndctl: 79 -> 81

Diff: https://github.com/pmem/ndctl/compare/v79...v81
This commit is contained in:
emaryn 2025-05-11 15:23:22 +08:00
parent 23d3cb96ff
commit e7ddf711a7

View file

@ -12,17 +12,19 @@
kmod, kmod,
udev, udev,
util-linux, util-linux,
libtracefs,
libtraceevent,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libndctl"; pname = "libndctl";
version = "79"; version = "81";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pmem"; owner = "pmem";
repo = "ndctl"; repo = "ndctl";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "sha256-gG1Rz5AtDLzikGFr8A3l25ypd+VoLw2oWjszy9ogDLk="; hash = "sha256-geOfaI5XehucLanNS8KTIyOAXOS5YSjs61hfrWbmqSs=";
}; };
patches = lib.optionals (!stdenv.hostPlatform.isGnu) [ patches = lib.optionals (!stdenv.hostPlatform.isGnu) [
@ -52,12 +54,13 @@ stdenv.mkDerivation rec {
kmod kmod
udev udev
util-linux util-linux
libtracefs
libtraceevent
]; ];
mesonFlags = [ mesonFlags = [
(lib.mesonOption "rootprefix" "${placeholder "out"}") (lib.mesonOption "rootprefix" "${placeholder "out"}")
(lib.mesonOption "sysconfdir" "${placeholder "out"}/etc/ndctl.conf.d") (lib.mesonOption "sysconfdir" "${placeholder "out"}/etc/ndctl.conf.d")
(lib.mesonEnable "libtracefs" false)
# Use asciidoctor due to xmlto errors # Use asciidoctor due to xmlto errors
(lib.mesonEnable "asciidoctor" true) (lib.mesonEnable "asciidoctor" true)
(lib.mesonEnable "systemd" false) (lib.mesonEnable "systemd" false)
@ -70,7 +73,7 @@ stdenv.mkDerivation rec {
substituteInPlace git-version --replace-fail /bin/bash ${stdenv.shell} substituteInPlace git-version --replace-fail /bin/bash ${stdenv.shell}
substituteInPlace git-version-gen --replace-fail /bin/sh ${stdenv.shell} substituteInPlace git-version-gen --replace-fail /bin/sh ${stdenv.shell}
echo "m4_define([GIT_VERSION], [${version}])" > version.m4; echo "m4_define([GIT_VERSION], [${finalAttrs.version}])" > version.m4;
''; '';
meta = { meta = {
@ -80,4 +83,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ thoughtpolice ]; maintainers = with lib.maintainers; [ thoughtpolice ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} })