freewheeling: fix build
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
autoreconfHook,
|
||||
gnutls,
|
||||
freetype,
|
||||
fluidsynth,
|
||||
SDL,
|
||||
@@ -18,11 +16,9 @@
|
||||
libSM,
|
||||
libsndfile,
|
||||
libogg,
|
||||
libtool,
|
||||
libX11,
|
||||
nettle,
|
||||
}:
|
||||
let
|
||||
makeSDLFlags = map (p: "-I${lib.getDev p}/include/SDL");
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "freewheeling";
|
||||
@@ -35,11 +31,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-xEZBE/7nUvK2hruqP6QQzlsIDmuniPZg7JEJkCEvzvU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
libtool
|
||||
];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
freetype
|
||||
fluidsynth
|
||||
@@ -54,20 +47,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libsndfile
|
||||
libogg
|
||||
libSM
|
||||
(gnutls.overrideAttrs (oldAttrs: {
|
||||
configureFlags = oldAttrs.configureFlags ++ [ "--enable-openssl-compatibility" ];
|
||||
}))
|
||||
libX11
|
||||
nettle
|
||||
];
|
||||
env.NIX_CFLAGS_COMPILE = toString (
|
||||
makeSDLFlags [
|
||||
SDL
|
||||
SDL_ttf
|
||||
SDL_gfx
|
||||
]
|
||||
++ [ "-I${libxml2.dev}/include/libxml2" ]
|
||||
);
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev libxml2}/include/libxml2";
|
||||
|
||||
meta = {
|
||||
description = "Live looping instrument with JACK and MIDI support";
|
||||
|
||||
Reference in New Issue
Block a user