Commit 640acd7b authored by magicquark's avatar magicquark
Browse files
parent 69ce2fe9
Loading
Loading
Loading
Loading
+9 −14
Original line number Diff line number Diff line
@@ -2,11 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  which,
  pkg-config,
  automake,
  autoconf,
  libtool,
  gtk3,
  libv3270,
  lib3270,
@@ -14,27 +10,29 @@
  gettext,
  desktop-file-utils,
  wrapGAppsHook3,
  meson,
  scour,
  ninja,
}:

stdenv.mkDerivation rec {
  pname = "pw3270";
  version = "5.4";
  version = "5.5.0";

  src = fetchFromGitHub {
    owner = "PerryWerneck";
    repo = "pw3270";
    rev = version;
    hash = "sha256-Nk/OUqrWngKgb1D1Wi8q5ygKtvuRKUPhPQaLvWi1Z4g=";
    hash = "sha256-thvurPyAsbcCRcanV6PwObO26LCmphdNrYYKhHDKnzE=";
  };

  nativeBuildInputs = [
    which
    pkg-config
    autoconf
    automake
    libtool
    desktop-file-utils
    wrapGAppsHook3
    meson
    scour
    ninja
  ];

  buildInputs = [
@@ -52,14 +50,11 @@ stdenv.mkDerivation rec {
    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/pw3270-${version}/glib-2.0/schemas $out/share/glib-2.0/
    glib-compile-schemas $out/share/glib-2.0/schemas
    rm -rf $out/share/gsettings-schemas
  '';