Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchurl 4, meson 5, ninja 6, pkg-config 7, itstool 8, gettext 9, python3 10, wrapGAppsHook 11, libxml2 12, libgda6 13, libhandy 14, libsoup_3 15, json-glib 16, gspell 17, glib 18, gtk3 19, gtksourceview4 20, gnome 21, gsettings-desktop-schemas 22}: 23 24stdenv.mkDerivation rec { 25 pname = "gtranslator"; 26 version = "42.0"; 27 28 src = fetchurl { 29 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 30 sha256 = "Kme8v+ZDBhsGltiaEIR9UL81kF/zNhuYcTV9PjQi8Ts="; 31 }; 32 33 nativeBuildInputs = [ 34 meson 35 ninja 36 pkg-config 37 itstool 38 gettext 39 python3 40 wrapGAppsHook 41 ]; 42 43 buildInputs = [ 44 libxml2 45 glib 46 gtk3 47 gtksourceview4 48 libgda6 49 libhandy 50 libsoup_3 51 json-glib 52 gettext 53 gspell 54 gsettings-desktop-schemas 55 ]; 56 57 postPatch = '' 58 chmod +x build-aux/meson/meson_post_install.py 59 patchShebangs build-aux/meson/meson_post_install.py 60 ''; 61 62 passthru = { 63 updateScript = gnome.updateScript { 64 packageName = pname; 65 }; 66 }; 67 68 meta = with lib; { 69 description = "GNOME translation making program"; 70 homepage = "https://wiki.gnome.org/Apps/Gtranslator"; 71 license = licenses.gpl3Plus; 72 maintainers = with maintainers; [ ]; 73 platforms = platforms.linux; 74 }; 75}