summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-06-18 16:00:07 +0200
committerGitHub <noreply@github.com>2018-06-18 16:00:07 +0200
commit590b51cb955b6fc461fb1a7d7c0c524bad810bb3 (patch)
tree8e74ab27d578f714210531078e79d77d66d0632e /pkgs
parent3756efbdcc077dbce566e0dd3f23900756684671 (diff)
parent397f5c37df025e561b0cc94e71077fa0a06679f6 (diff)
downloadnixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar.gz
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar.bz2
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar.lz
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar.xz
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.tar.zst
nixpkgs-590b51cb955b6fc461fb1a7d7c0c524bad810bb3.zip
Merge pull request #38382 from NixOS/yegortimoshenko-patch-1
cryptsetup: 1.7.5 -> 2.0.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/cryptsetup/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/cryptsetup/default.nix b/pkgs/os-specific/linux/cryptsetup/default.nix
index ef8c55853a3..4a64154b585 100644
--- a/pkgs/os-specific/linux/cryptsetup/default.nix
+++ b/pkgs/os-specific/linux/cryptsetup/default.nix
@@ -1,23 +1,27 @@
-{ stdenv, fetchurl, devicemapper, openssl, libuuid, pkgconfig, popt
-, enablePython ? false, python2 ? null
-}:
+{ stdenv, fetchurl, devicemapper, json_c, openssl, libuuid, pkgconfig, popt
+, enablePython ? false, python2 ? null }:
 
 assert enablePython -> python2 != null;
 
 stdenv.mkDerivation rec {
-  name = "cryptsetup-1.7.5";
+  name = "cryptsetup-2.0.2";
 
   src = fetchurl {
-    url = "mirror://kernel/linux/utils/cryptsetup/v1.7/${name}.tar.xz";
-    sha256 = "1gail831j826lmpdx2gsc83lp3br6wfnwh3vqwxaa1nn1lfwsc1b";
+    url = "mirror://kernel/linux/utils/cryptsetup/v2.0/${name}.tar.xz";
+    sha256 = "15wyjfgcqjf0wy5gxnmjj8aah33csv5v6n1hv9c8sxdzygbhb0ag";
   };
 
-  configureFlags = [ "--enable-cryptsetup-reencrypt" "--with-crypto_backend=openssl" ]
-                ++ stdenv.lib.optional enablePython "--enable-python";
+  NIX_LDFLAGS = "-lgcc_s";
+
+  configureFlags = [
+    "--disable-kernel_crypto"
+    "--enable-cryptsetup-reencrypt"
+    "--with-crypto_backend=openssl"
+  ] ++ stdenv.lib.optional enablePython "--enable-python";
 
   nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ devicemapper openssl libuuid popt ]
-             ++ stdenv.lib.optional enablePython python2;
+  buildInputs = [ devicemapper json_c openssl libuuid popt ]
+    ++ stdenv.lib.optional enablePython python2;
 
   meta = {
     homepage = https://gitlab.com/cryptsetup/cryptsetup/;