New package: LDM - Lightweight device mounter

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
This commit is contained in:
Moritz Ulrich 2013-11-10 14:30:01 +01:00
parent b9f5b880e7
commit 7fded05cbe
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ stdenv, fetchgit, udev, utillinux, mountPath ? "/media/" }:
assert mountPath != "";
let
name = "ldm-0.4.2";
in
stdenv.mkDerivation {
inherit name;
# There is a stable release, but we'll use the lvm branch, which
# contains important fixes for LVM setups.
src = fetchgit {
url = "https://github.com/LemonBoy/ldm.git";
rev = "26633ce07b";
sha256 = "bb733d3b9b3bd5843b9cf1507a04a063c5aa45b398480411709fc727ae10b8b1";
};
buildInputs = [ udev utillinux ];
preBuild = ''
substituteInPlace ldm.c \
--replace "/mnt/" "${mountPath}"
'';
installPhase = ''
mkdir -p $out/bin
cp -v ldm $out/bin
'';
meta = {
description = "A lightweight device mounter, with libudev as only dependency";
license = "MIT";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.the-kenny ];
};
}

View File

@ -6567,6 +6567,8 @@ let
latencytop = callPackage ../os-specific/linux/latencytop { }; latencytop = callPackage ../os-specific/linux/latencytop { };
ldm = callPackage ../os-specific/linux/ldm { };
libaio = callPackage ../os-specific/linux/libaio { }; libaio = callPackage ../os-specific/linux/libaio { };
libatasmart = callPackage ../os-specific/linux/libatasmart { }; libatasmart = callPackage ../os-specific/linux/libatasmart { };