at 18.03-beta 29 lines 955 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 nativeBuildInputs = [ pkgconfig ]; 19 buildInputs = [ devicemapper openssl libuuid popt ] 20 ++ stdenv.lib.optional enablePython python2; 21 22 meta = { 23 homepage = https://gitlab.com/cryptsetup/cryptsetup/; 24 description = "LUKS for dm-crypt"; 25 license = stdenv.lib.licenses.gpl2; 26 maintainers = with stdenv.lib.maintainers; [ viric chaoflow ]; 27 platforms = with stdenv.lib.platforms; linux; 28 }; 29}