Merge pull request #192901 from trofi/chkservice-to-gcc-11

chkservice: pull fix for gcc-11

authored by Sergei Trofimovich and committed by GitHub ff7196b9 9e4c8aec

+22 -5
+21 -2
pkgs/tools/admin/chkservice/default.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, ninja, pkg-config, systemd, ncurses, lib }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + , ninja 7 + , pkg-config 8 + , systemd 9 + , ncurses 10 + }: 2 11 3 12 stdenv.mkDerivation rec { 4 13 pname = "chkservice"; ··· 8 17 owner = "linuxenko"; 9 18 repo = "chkservice"; 10 19 rev = version; 11 - hash = "sha256:0dfvm62h6dwg18f17fn58nr09mfh6kylm8wy88j00fiy13l4wnb6"; 20 + hash = "sha256-ZllO6Ag+OgAkQp6jSv000NUEskXFuhMcCo83A4Wp2zU="; 12 21 }; 22 + 23 + patches = [ 24 + # Pull fix pending upstream inclusion for gcc-11 support: 25 + # https://github.com/linuxenko/chkservice/pull/38 26 + (fetchpatch { 27 + name = "gcc-11.patch"; 28 + url = "https://github.com/linuxenko/chkservice/commit/26b12a7918c8a3bc449c92b458e6cd5c2d7b2e05.patch"; 29 + hash = "sha256-LaJLlqRyn1eoahbW2X+hDSt8iV4lhNRn0j0kLHB+RhM="; 30 + }) 31 + ]; 13 32 14 33 # Tools needed during build time 15 34 nativeBuildInputs = [
+1 -3
pkgs/top-level/all-packages.nix
··· 208 208 } 209 209 ''); 210 210 211 - chkservice = callPackage ../tools/admin/chkservice { 212 - stdenv = gcc10StdenvCompat; 213 - }; 211 + chkservice = callPackage ../tools/admin/chkservice { }; 214 212 215 213 addOpenGLRunpath = callPackage ../build-support/add-opengl-runpath { }; 216 214