cryptsetup: Remove ruby build dependency from NixOS

Removing this build dependency makes most NixOS tests completely
independent of the ruby ecosystem.
This helps reduce mass-rebuilds, which is especially useful when
bisecting the staging branch using a NixOS test.

authored by Robert Hensing and committed by Yureka e5b51364 c4bf5cbd

+11 -2
+11 -2
pkgs/os-specific/linux/cryptsetup/default.nix
··· 1 { lib, stdenv, fetchurl, lvm2, json_c, asciidoctor 2 - , openssl, libuuid, pkg-config, popt }: 3 4 stdenv.mkDerivation rec { 5 pname = "cryptsetup"; ··· 28 "--enable-cryptsetup-reencrypt" 29 "--with-crypto_backend=openssl" 30 "--disable-ssh-token" 31 ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 32 "--disable-external-tokens" 33 # We have to override this even though we're removing token ··· 36 "--with-luks2-external-tokens-path=/" 37 ]; 38 39 - nativeBuildInputs = [ pkg-config asciidoctor ]; 40 buildInputs = [ lvm2 json_c openssl libuuid popt ]; 41 42 # The test [7] header backup in compat-test fails with a mysterious
··· 1 { lib, stdenv, fetchurl, lvm2, json_c, asciidoctor 2 + , openssl, libuuid, pkg-config, popt 3 + 4 + # The release tarballs contain precomputed manpage files, so we don't need 5 + # to run asciidoctor on the man sources. By avoiding asciidoctor, we make 6 + # the bare NixOS build hash independent of changes to the ruby ecosystem, 7 + # saving mass-rebuilds. 8 + , rebuildMan ? false 9 + }: 10 11 stdenv.mkDerivation rec { 12 pname = "cryptsetup"; ··· 35 "--enable-cryptsetup-reencrypt" 36 "--with-crypto_backend=openssl" 37 "--disable-ssh-token" 38 + ] ++ lib.optionals (!rebuildMan) [ 39 + "--disable-asciidoc" 40 ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 41 "--disable-external-tokens" 42 # We have to override this even though we're removing token ··· 45 "--with-luks2-external-tokens-path=/" 46 ]; 47 48 + nativeBuildInputs = [ pkg-config ] ++ lib.optionals rebuildMan [ asciidoctor ]; 49 buildInputs = [ lvm2 json_c openssl libuuid popt ]; 50 51 # The test [7] header backup in compat-test fails with a mysterious