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