kew: fix cross builds
This commit is contained in:
@@ -26,6 +26,11 @@
|
||||
withPulseaudio ? config.pulseaudio or stdenv.hostPlatform.isLinux,
|
||||
}:
|
||||
|
||||
let
|
||||
uppercaseFirst =
|
||||
x: (lib.toUpper (lib.substring 0 1 x)) + (lib.substring 1 ((lib.strings.stringLength x) - 1) x);
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "kew";
|
||||
version = "3.2.0";
|
||||
@@ -37,6 +42,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-nntbxDy1gfd4F/FvlilLeOAepqtxhnYE2XRjJSlFvgI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace-fail '$(shell uname -s)' '${uppercaseFirst stdenv.hostPlatform.parsed.kernel.name}' \
|
||||
--replace-fail '$(shell uname -m)' '${stdenv.hostPlatform.parsed.cpu.name}'
|
||||
'';
|
||||
|
||||
nativeBuildInputs =
|
||||
[
|
||||
pkg-config
|
||||
|
||||
Reference in New Issue
Block a user