diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-03-01 11:11:21 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-03-01 11:11:21 +0000 |
commit | 247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155 (patch) | |
tree | 17f382b2f5f61fd49f39ae0bc154b68365677e42 /pkgs/os-specific/linux/cryptsetup/default.nix | |
parent | 67cbb2c3fb5d2326c2b14a2d24156447f02cee1f (diff) | |
download | nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar.gz nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar.bz2 nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar.lz nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar.xz nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.tar.zst nixpkgs-247ad8bfcf84e7b7d7c7608bb79ed06f2fd27155.zip |
Adding LUKS cryptsetup for the devicemapper.
svn path=/nixpkgs/trunk/; revision=14289
Diffstat (limited to 'pkgs/os-specific/linux/cryptsetup/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/cryptsetup/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/cryptsetup/default.nix b/pkgs/os-specific/linux/cryptsetup/default.nix new file mode 100644 index 00000000000..f7fee0705d9 --- /dev/null +++ b/pkgs/os-specific/linux/cryptsetup/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, e2fsprogs, popt, devicemapper, udev }: + +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 = '' + sed -i -e 's@/sbin/udevsettle@${udev}/sbin/udevsettle@' lib/libdevmapper.c + ''; + + buildInputs = [ e2fsprogs popt devicemapper ]; + + meta = { + homepage = http://code.google.com/p/cryptsetup/; + description = "LUKS for dm-crypt"; + license = "GPLv2"; + }; +} |