2009-09-20 10:22:02 +01:00
|
|
|
{stdenv, fetchurl, libuuid, popt, devicemapper, udev }:
|
2009-03-01 11:11:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cryptsetup-1.0.6";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://cryptsetup.googlecode.com/files/cryptsetup-1.0.6.tar.bz2;
|
|
|
|
sha256 = "df7fda80cfa01f063caf39140287a47d018dfe056fc71a3ba605e690ff0183fd";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-libdevmapper" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2010-01-03 11:01:58 +00:00
|
|
|
sed -i -e 's@/sbin/udevsettle@${udev}/sbin/udevadm settle@' lib/libdevmapper.c
|
2009-03-01 11:11:21 +00:00
|
|
|
'';
|
|
|
|
|
2009-09-20 10:22:02 +01:00
|
|
|
buildInputs = [ libuuid popt devicemapper ];
|
2009-03-01 11:11:21 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://code.google.com/p/cryptsetup/;
|
|
|
|
description = "LUKS for dm-crypt";
|
|
|
|
license = "GPLv2";
|
2009-09-20 10:37:55 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-03-01 11:11:21 +00:00
|
|
|
};
|
|
|
|
}
|