Skip to content

Commit

Permalink
helm: compile with gcc9 (#95862)
Browse files Browse the repository at this point in the history
To make using MESA libraries that are compiled with gcc9 work,
refs #95806
  • Loading branch information
raboof committed Aug 25, 2020
1 parent 90db964 commit 2894579
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 22 additions & 3 deletions pkgs/applications/audio/helm/default.nix
@@ -1,5 +1,16 @@
{ stdenv, fetchFromGitHub , xorg, freetype, alsaLib, curl, libjack2
, lv2, pkgconfig, libGLU, libGL }:
{ stdenv
, fetchFromGitHub
, fetchpatch
, xorg
, freetype
, alsaLib
, curl
, libjack2
, lv2
, pkgconfig
, libGLU
, libGL
}:

stdenv.mkDerivation {
version = "0.9.0";
Expand All @@ -20,7 +31,15 @@

CXXFLAGS = "-DHAVE_LROUND";

patchPhase = ''
patches = [
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
(fetchpatch {
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
sha256 = "1i2289srcfz17c3zzab6f51aznzdj62kk53l4afr32bkjh9s4ixk";
})
];

prePatch = ''
sed -i 's|usr/||g' Makefile
'';

Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -26493,9 +26493,7 @@ in

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

helm = callPackage ../applications/audio/helm {
stdenv = gcc8Stdenv;
};
helm = callPackage ../applications/audio/helm { };

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

Expand Down

0 comments on commit 2894579

Please sign in to comment.