nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 39 lines 1.2 kB view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk-doc, libxslt, docbook_xsl 2, docbook_xml_dtd_43, python3, gobject-introspection, glib, udev, kmod, parted, libyaml 3, cryptsetup, lvm2, dmraid, utillinux, libbytesize, libndctl, nss, volume_key 4}: 5 6let 7 version = "2.20"; 8in stdenv.mkDerivation rec { 9 name = "libblockdev-${version}"; 10 11 src = fetchFromGitHub { 12 owner = "storaged-project"; 13 repo = "libblockdev"; 14 rev = "${version}-1"; 15 sha256 = "13xy8vx2dnnxczpnwapchc5ncigcxb2fhpmrmglbpkjqmhn2zbdj"; 16 }; 17 18 outputs = [ "out" "dev" "devdoc" ]; 19 20 postPatch = '' 21 patchShebangs scripts 22 ''; 23 24 nativeBuildInputs = [ 25 autoreconfHook pkgconfig gtk-doc libxslt docbook_xsl docbook_xml_dtd_43 python3 gobject-introspection 26 ]; 27 28 buildInputs = [ 29 glib udev kmod parted cryptsetup lvm2 dmraid utillinux libbytesize libndctl nss volume_key libyaml 30 ]; 31 32 meta = with stdenv.lib; { 33 description = "A library for manipulating block devices"; 34 homepage = http://storaged.org/libblockdev/; 35 license = licenses.lgpl2Plus; # lgpl2Plus for the library, gpl2Plus for the utils 36 maintainers = with maintainers; []; 37 platforms = platforms.linux; 38 }; 39}