Unverified Commit 9fff0316 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

orbiton: 2.65.12 → 2.67.1 (#350304)

parents 71ccc3b0 42f519ea
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -4,32 +4,27 @@

buildGoModule rec {
  pname = "orbiton";
  version = "2.65.12";
  version = "2.67.1";

  src = fetchFromGitHub {
    owner = "xyproto";
    repo = "orbiton";
    rev = "v${version}";
    hash = "sha256-1KVw2dj//6vwUUj1jVWe2J/9F6J8BQsvCAEbJZnW26c=";
    hash = "sha256-/5USD588kr3uB/Zs1ASKVgxH4kAWZCNBrZL7qqx49gU=";
  };

  vendorHash = null;

  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    substituteInPlace Makefile \
      --replace "-Wl,--as-needed" ""

    # Requires impure pbcopy and pbpaste
    substituteInPlace v2/pbcopy_test.go \
      --replace TestPBcopy SkipTestPBcopy
  '';

  nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ];

  buildInputs = lib.optional withGui vte;

  preBuild = "cd v2";

  checkFlags = [
    "-skip=TestPBcopy" # Requires impure pbcopy and pbpaste
  ];

  postInstall = ''
    cd ..
    installManPage o.1