2021-12-19 01:06:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python3, wafHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ntk";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.3.1001";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-12-19 01:06:50 +00:00
|
|
|
owner = "linuxaudio";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "ntk";
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-NyEdg6e+9CI9V+TIgdpPyH1ei+Vq8pUxD3wPzWY5fEU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wafHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
cairo libjpeg libXft python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# NOTE: ntk provides its own waf script that is incompatible with new
|
|
|
|
# python versions. If the script is not present, wafHook will install
|
|
|
|
# a compatible version from nixpkgs.
|
|
|
|
prePatch = ''
|
|
|
|
rm waf
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Fork of FLTK 1.3.0 with additional functionality";
|
|
|
|
version = version;
|
|
|
|
homepage = "http://non.tuxfamily.org/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = with lib.maintainers; [ magnetophon nico202 ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|