File tree Expand file tree Collapse file tree
pkgs/os-specific/linux/util-linux Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626in
2727stdenv . mkDerivation rec {
2828 pname = "util-linux" + lib . optionalString ( ! nlsSupport && ! ncursesSupport && ! systemdSupport ) "-minimal" ;
29- version = "2.40.1" ;
29+ version = if avoidRebuild then "2.40.1" else "2.39.4 ";
3030
3131 src = fetchurl {
3232 url = "mirror://kernel/linux/utils/util-linux/v${ lib . versions . majorMinor version } /util-linux-${ version } .tar.xz" ;
33- hash = "sha256-WeZ2qlPMtEtsOfD/4BqPonSJHJG+8UdHUvrZJGHe8k8=" ;
33+ hash = if avoidRebuild
34+ then "sha256-WeZ2qlPMtEtsOfD/4BqPonSJHJG+8UdHUvrZJGHe8k8="
35+ else "sha256-bE+HI9r9QcOdk+y/FlCfyIwzzVvTJ3iArlodl6AU/Q4=" ;
3436 } ;
3537
3638 patches = [
3739 ./rtcwake-search-PATH-for-shutdown.patch
38- ] ++ lib . optionals ( ! avoidRebuild ) [
39- # Backports of patches that hopefully fix an intermittent parallel
40- # build failure.
41- ( fetchpatch {
42- name = "pam_lastlog2:-drop-duplicate-assignment-pam_lastlog2_la_LDFLAGS.patch" ;
43- url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=290748729dc3edf9ea1c680c8954441a5e367a44" ;
44- hash = "sha256-Hi+SrT8UovZyCWf6Jc7s3dc6YLyfOfgqohOEnc7aJq4=" ;
45- } )
46- ( fetchpatch {
47- name = "libuuid:-drop-duplicate-assignment-liuuid_la_LDFLAGS" ;
48- url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=597e8b246ae31366514ead6cca240a09fe5e1528" ;
49- hash = "sha256-QCx3MD/57x2tV1SlJ79EYyxafhaEH4UC+Dt24DA6P8I=" ;
50- } )
5140 ] ;
5241
5342 # We separate some of the utilities into their own outputs. This
@@ -98,7 +87,6 @@ stdenv.mkDerivation rec {
9887 ] ;
9988
10089 nativeBuildInputs = [ pkg-config installShellFiles ]
101- ++ lib . optionals ( ! avoidRebuild ) [ autoreconfHook gtk-doc ]
10290 ++ lib . optionals translateManpages [ po4a ] ;
10391
10492 buildInputs = [ zlib libxcrypt sqlite ]
You can’t perform that action at this time.
0 commit comments