diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-07 14:04:47 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-07 14:04:47 +0100 |
commit | ba08e4e99b00a6916c4360de7288a7bfcef85328 (patch) | |
tree | 347c8b6ad50fcaafc08e50f1307a861378650440 /nixpkgs/pkgs/by-name/pw/pw3270/package.nix | |
parent | 190fd93d11701ad81af757be6260df9635bdb41a (diff) | |
parent | 2c7f3c0fb7c08a0814627611d9d7d45ab6d75335 (diff) | |
download | nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.gz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.bz2 nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.lz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.xz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.zst nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/pw/pw3270/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/pw/pw3270/package.nix | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/pw/pw3270/package.nix b/nixpkgs/pkgs/by-name/pw/pw3270/package.nix new file mode 100644 index 000000000000..4e35f393dbcb --- /dev/null +++ b/nixpkgs/pkgs/by-name/pw/pw3270/package.nix @@ -0,0 +1,76 @@ +{ lib +, stdenv +, fetchFromGitHub +, which +, pkg-config +, automake +, autoconf +, m4 +, libtool +, gtk3 +, libv3270 +, lib3270 +, openssl +, gettext +, desktop-file-utils +, glib +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "pw3270"; + version = "5.4"; + + src = fetchFromGitHub { + owner = "PerryWerneck"; + repo = pname; + rev = version; + hash = "sha256-Nk/OUqrWngKgb1D1Wi8q5ygKtvuRKUPhPQaLvWi1Z4g="; + }; + + nativeBuildInputs = [ + which + pkg-config + autoconf + automake + libtool + desktop-file-utils + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + gettext + libv3270 + lib3270 + openssl + ]; + + postPatch = '' + # lib3270_build_data_filename is relative to lib3270's share - not ours. + for f in $(find . -type f -iname "*.c"); do + sed -i -e "s@lib3270_build_data_filename(@g_build_filename(\"$out/share/pw3270\", @" "$f" + done + ''; + + preConfigure = '' + NOCONFIGURE=1 sh autogen.sh + ''; + + postFixup = '' + # Schemas get installed to wrong directory. + mkdir -p $out/share/glib-2.0 + mv $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas $out/share/glib-2.0/ + rm -rf $out/share/gsettings-schemas + ''; + + enableParallelBuilds = true; + + meta = with lib; { + description = "3270 Emulator for gtk"; + homepage = "https://softwarepublico.gov.br/social/pw3270/"; + license = licenses.lgpl3Plus; + maintainers = [ maintainers.vifino ]; + mainProgram = "pw3270"; + }; +} |