mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
helm: fix build
This commit is contained in:
parent
57488cbc46
commit
6cf82f608c
@ -14,15 +14,15 @@
|
|||||||
libGL,
|
libGL,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "0.9.0";
|
|
||||||
pname = "helm";
|
pname = "helm";
|
||||||
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mtytel";
|
owner = "mtytel";
|
||||||
repo = "helm";
|
repo = "helm";
|
||||||
rev = "927d2ed27f71a735c3ff2a1226ce3129d1544e7e";
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
sha256 = "17ys2vvhncx9i3ydg3xwgz1d3gqv4yr5mqi7vr0i0ca6nad6x3d4";
|
hash = "sha256-pI1umrJGMRBB3ifiWrInG7/Rwn+8j9f8iKkzC/cW2p8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -43,25 +43,31 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
CXXFLAGS = "-DHAVE_LROUND";
|
CXXFLAGS = [
|
||||||
|
"-DHAVE_LROUND"
|
||||||
|
"-fpermissive"
|
||||||
|
];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
makeFlags = [ "DESTDIR=$(out)" ];
|
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
|
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
|
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
|
||||||
sha256 = "1i2289srcfz17c3zzab6f51aznzdj62kk53l4afr32bkjh9s4ixk";
|
hash = "sha256-s0eiE5RziZGdInSUOYWR7duvQnFmqf8HO+E7lnVCQsQ=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
postPatch = ''
|
||||||
sed -i 's|usr/||g' Makefile
|
substituteInPlace Makefile \
|
||||||
sed -i "s|/usr/share/|$out/share/|" src/common/load_save.cpp
|
--replace-fail "usr/" ""
|
||||||
|
|
||||||
|
substituteInPlace src/common/load_save.cpp \
|
||||||
|
--replace-fail "/usr/share/" "$out/share/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "http://tytel.org/helm";
|
homepage = "https://tytel.org/helm";
|
||||||
description = "Free, cross-platform, polyphonic synthesizer";
|
description = "Free, cross-platform, polyphonic synthesizer";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
A free, cross-platform, polyphonic synthesizer.
|
A free, cross-platform, polyphonic synthesizer.
|
||||||
@ -81,8 +87,11 @@ stdenv.mkDerivation {
|
|||||||
Effects: Formant filter, stutter, delay
|
Effects: Formant filter, stutter, delay
|
||||||
'';
|
'';
|
||||||
license = lib.licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
maintainers = [ maintainers.magnetophon ];
|
maintainers = with lib.maintainers; [
|
||||||
platforms = platforms.linux;
|
magnetophon
|
||||||
|
bot-wxt1221
|
||||||
|
];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
mainProgram = "helm";
|
mainProgram = "helm";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user