at 17.09-beta 28 lines 928 B view raw
1{ stdenv, fetchurl, devicemapper, openssl, libuuid, pkgconfig, popt 2, enablePython ? false, python2 ? null 3}: 4 5assert enablePython -> python2 != null; 6 7stdenv.mkDerivation rec { 8 name = "cryptsetup-1.7.5"; 9 10 src = fetchurl { 11 url = "mirror://kernel/linux/utils/cryptsetup/v1.7/${name}.tar.xz"; 12 sha256 = "1gail831j826lmpdx2gsc83lp3br6wfnwh3vqwxaa1nn1lfwsc1b"; 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 python2; 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}