Files
nixpkgs/pkgs/by-name/vd/vdo/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
libuuid,
lvm2_dmeventd, # <libdevmapper-event.h>
zlib,
python3,
}:
stdenv.mkDerivation rec {
pname = "vdo";
version = "8.3.1.1";
src = fetchFromGitHub {
owner = "dm-vdo";
repo = "vdo";
rev = version;
hash = "sha256-6oX3ngsBPhE6XsMfliWw5Qzu3UosnsIFIAFRCqckU7U=";
};
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
libuuid
lvm2_dmeventd
zlib
python3.pkgs.wrapPython
];
propagatedBuildInputs = with python3.pkgs; [
pyyaml
];
pythonPath = propagatedBuildInputs;
makeFlags = [
"DESTDIR=${placeholder "out"}"
"INSTALLOWNER="
# all of these paths are relative to DESTDIR and have defaults that don't work for us
"bindir=/bin"
"defaultdocdir=/share/doc"
"mandir=/share/man"
"python3_sitelib=${python3.sitePackages}"
];
enableParallelBuilding = true;
postInstall = ''
installShellCompletion --bash $out/usr/share/bash-completion/completions/*
rm -rv $out/usr
wrapPythonPrograms
'';
meta = with lib; {
homepage = "https://github.com/dm-vdo/vdo";
description = "Set of userspace tools for managing pools of deduplicated and/or compressed block storage";
# platforms are defined in https://github.com/dm-vdo/vdo/blob/master/utils/uds/atomicDefs.h
platforms = [
"x86_64-linux"
"aarch64-linux"
"s390-linux"
"powerpc64-linux"
"powerpc64le-linux"
];
license = with licenses; [ gpl2Plus ];
maintainers = [ ];
};
}