Skip to content

Commit 2894579

Browse files
authored
helm: compile with gcc9 (#95862)
To make using MESA libraries that are compiled with gcc9 work, refs #95806
1 parent 90db964 commit 2894579

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

pkgs/applications/audio/helm/default.nix

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
{ stdenv, fetchFromGitHub , xorg, freetype, alsaLib, curl, libjack2
2-
, lv2, pkgconfig, libGLU, libGL }:
1+
{ stdenv
2+
, fetchFromGitHub
3+
, fetchpatch
4+
, xorg
5+
, freetype
6+
, alsaLib
7+
, curl
8+
, libjack2
9+
, lv2
10+
, pkgconfig
11+
, libGLU
12+
, libGL
13+
}:
314

415
stdenv.mkDerivation {
516
version = "0.9.0";
@@ -20,7 +31,15 @@
2031

2132
CXXFLAGS = "-DHAVE_LROUND";
2233

23-
patchPhase = ''
34+
patches = [
35+
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
36+
(fetchpatch {
37+
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
38+
sha256 = "1i2289srcfz17c3zzab6f51aznzdj62kk53l4afr32bkjh9s4ixk";
39+
})
40+
];
41+
42+
prePatch = ''
2443
sed -i 's|usr/||g' Makefile
2544
'';
2645

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26493,9 +26493,7 @@ in
2649326493

2649426494
hatari = callPackage ../misc/emulators/hatari { };
2649526495

26496-
helm = callPackage ../applications/audio/helm {
26497-
stdenv = gcc8Stdenv;
26498-
};
26496+
helm = callPackage ../applications/audio/helm { };
2649926497

2650026498
helmfile = callPackage ../applications/networking/cluster/helmfile { };
2650126499

0 commit comments

Comments
 (0)