at 16.09-beta 925 B view raw
1{ stdenv, fetchurl, devicemapper, openssl, libuuid, pkgconfig, popt 2, enablePython ? false, python ? null 3}: 4 5assert enablePython -> python != null; 6 7stdenv.mkDerivation rec { 8 name = "cryptsetup-1.7.0"; 9 10 src = fetchurl { 11 url = "mirror://kernel/linux/utils/cryptsetup/v1.7/${name}.tar.xz"; 12 sha256 = "0j6iwf64pdrl4nm5ypc2r33b3k0aflb939wz2496vcqdrjkj8m87"; 13 }; 14 15 configureFlags = [ "--enable-cryptsetup-reencrypt" "--with-crypto_backend=openssl" ] 16 ++ stdenv.lib.optional enablePython "--enable-python"; 17 18 buildInputs = [ devicemapper openssl libuuid pkgconfig popt ] 19 ++ stdenv.lib.optional enablePython python; 20 21 meta = { 22 homepage = https://gitlab.com/cryptsetup/cryptsetup/; 23 description = "LUKS for dm-crypt"; 24 license = stdenv.lib.licenses.gpl2; 25 maintainers = with stdenv.lib.maintainers; [ viric chaoflow ]; 26 platforms = with stdenv.lib.platforms; linux; 27 }; 28}