forked from mirrors/nixpkgs
vdo: init at 8.1.1.287
This commit is contained in:
parent
87310397a7
commit
88d2a7cbb5
64
pkgs/os-specific/linux/vdo/default.nix
Normal file
64
pkgs/os-specific/linux/vdo/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, libuuid
|
||||
, lvm2_dmeventd # <libdevmapper-event.h>
|
||||
, zlib
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vdo";
|
||||
version = "8.1.1.287"; # kvdo uses this!
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dm-vdo";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1dmfz1rfc7hzqbqmhlk0x4vsp7jivww19gmj5z1gg4fsl9g26wn8";
|
||||
};
|
||||
|
||||
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/bash_completion.d/*
|
||||
rm -r $out/bash_completion.d
|
||||
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dm-vdo/vdo";
|
||||
description = "A set of userspace tools for managing pools of deduplicated and/or compressed block storage";
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ gpl2Plus ];
|
||||
maintainers = with maintainers; [ ajs124 ];
|
||||
};
|
||||
}
|
|
@ -23554,6 +23554,8 @@ with pkgs;
|
|||
|
||||
vndr = callPackage ../development/tools/vndr { };
|
||||
|
||||
vdo = callPackage ../os-specific/linux/vdo { };
|
||||
|
||||
windows = callPackages ../os-specific/windows {};
|
||||
|
||||
wirelesstools = callPackage ../os-specific/linux/wireless-tools { };
|
||||
|
|
Loading…
Reference in a new issue