2011-04-22 10:39:48 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, libX11, makeWrapper, tcl, tk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vkeybd";
|
2011-04-22 10:39:48 +01:00
|
|
|
version = "0.1.18d";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "ftp://ftp.suse.com/pub/people/tiwai/vkeybd/${pname}-${version}.tar.bz2";
|
2011-04-22 10:39:48 +01:00
|
|
|
sha256 = "0107b5j1gf7dwp7qb4w2snj4bqiyps53d66qzl2rwj4jfpakws5a";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ alsaLib libX11 makeWrapper tcl tk ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-04-22 10:39:48 +01:00
|
|
|
sed -e "s@/usr/local@$out@" -i Makefile
|
|
|
|
'';
|
|
|
|
|
2015-04-27 05:21:59 +01:00
|
|
|
makeFlags = [ "TKLIB=-l${tk.libPrefix}" "TCLLIB=-l${tcl.libPrefix}" ];
|
2011-04-22 10:39:48 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/vkeybd --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Virtual MIDI keyboard";
|
2020-01-22 10:26:22 +00:00
|
|
|
homepage = https://www.alsa-project.org/~tiwai/alsa.html;
|
2011-04-22 10:39:48 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|