2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
, bzip2
|
2021-03-09 03:18:52 +00:00
|
|
|
, curl
|
2023-10-09 19:29:22 +00:00
|
|
|
, fribidi
|
|
|
|
, gtk3
|
|
|
|
, iconv
|
|
|
|
, libcpuid
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libwebp
|
2021-03-09 03:18:52 +00:00
|
|
|
, libxml2
|
2023-10-09 19:29:22 +00:00
|
|
|
, zlib
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smooth";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.9.10";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "enzo1982";
|
|
|
|
repo = "smooth";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
sha256 = "sha256-J2Do1iAbE1GBC8co/4nxOzeGJQiPRc+21fgMDpzKX+A=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2023-10-09 19:29:22 +00:00
|
|
|
"config=systemlibbz2,systemlibcpuid,systemlibcurl,systemlibfribidi,systemlibiconv,systemlibjpeg,systemlibpng,systemlibwebp,systemlibxml2,systemzlib"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
bzip2
|
2021-03-09 03:18:52 +00:00
|
|
|
curl
|
2023-10-09 19:29:22 +00:00
|
|
|
fribidi
|
|
|
|
gtk3
|
|
|
|
iconv
|
|
|
|
libcpuid
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libwebp
|
2021-03-09 03:18:52 +00:00
|
|
|
libxml2
|
2023-10-09 19:29:22 +00:00
|
|
|
zlib
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Smooth Class Library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "smooth-translator";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.artistic2;
|
|
|
|
homepage = "http://www.smooth-project.org/";
|
|
|
|
maintainers = with maintainers; [ shamilton ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|