mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
wildmidi: update to 0.3.6
This commit is contained in:
parent
83044b788c
commit
e9a8c8417f
@ -1,22 +1,22 @@
|
||||
{ stdenv, fetchurl, alsaLib, freepats }:
|
||||
{ stdenv, fetchurl, cmake, alsaLib, freepats }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "wildmidi-0.2.3.5";
|
||||
name = "wildmidi-0.3.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/wildmidi/wildmidi/${name}.tar.gz";
|
||||
sha256 = "0m75753mn0rbwja180c2qk53s149wp4k35dijr2i6pa7sc12fr00";
|
||||
url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
|
||||
sha256 = "0y8r812f8h9jqlajwbzni7f23k8kfcp4wxz3jdq75z902bsmdzpf";
|
||||
};
|
||||
|
||||
# NOTE: $out in configureFlags, like this:
|
||||
# configureFlags = "--disable-werror --with-wildmidi-cfg=$out/etc/wildmidi.cfg";
|
||||
# is not expanded, so use this workaround:
|
||||
preConfigure = ''
|
||||
configureFlags="--disable-werror --with-wildmidi-cfg=$out/etc/wildmidi.cfg"
|
||||
'';
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ alsaLib ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace /etc/wildmidi $out/etc
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir "$out"/etc
|
||||
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
|
||||
|
Loading…
Reference in New Issue
Block a user