Unverified Commit 6a17d9e6 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

screego: 1.10.5 -> 1.11.0 (#345892)

parents 7108a1d0 401e78d5
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  buildGo123Module,
  fetchFromGitHub,
  fetchYarnDeps,
  yarnConfigHook,
@@ -10,13 +10,13 @@
}:
let

  version = "1.10.5";
  version = "1.11.0";

  src = fetchFromGitHub {
    owner = "screego";
    repo = "server";
    rev = "v${version}";
    hash = "sha256-4WF9PfG6W1BLBqgWkKhTFEzed0+jDpRFMTsHw/1lPnQ=";
    hash = "sha256-PTGIcv+jgX8t37otBypuZG6DaGIeo92+w6YlRynIkZE=";
  };

  ui = stdenv.mkDerivation {
@@ -27,7 +27,7 @@ let

    offlineCache = fetchYarnDeps {
      yarnLock = "${src}/ui/yarn.lock";
      hash = "sha256-ye8UDkal10k/5uCd0VrZsG2FJGB727q+luExFTUmB/M=";
      hash = "sha256-yjHxyKEqXMxYsm+KroPB9KulfqYSOU/7ghbKnlSFrd0=";
    };

    nativeBuildInputs = [
@@ -36,6 +36,10 @@ let
      nodejs
    ];

    preConfigure = ''
      export HOME=$(mktemp -d)
    '';

    installPhase = ''
      cp -r build $out
    '';
@@ -44,12 +48,12 @@ let

in

buildGoModule rec {
buildGo123Module rec {
  inherit src version;

  pname = "screego-server";

  vendorHash = "sha256-ry8LO+KmNU9MKL8/buk9qriDe/zq+2uIsws6wVZmoo4=";
  vendorHash = "sha256-190Fp2QtnZis0sophGwhnWhXNWLhODWlnzE3bfScZ+Q=";

  ldflags = [
    "-s"
@@ -68,6 +72,8 @@ buildGoModule rec {
    mv $out/bin/server $out/bin/screego
  '';

  __darwinAllowLocalNetworking = true;

  meta = with lib; {
    description = "Screen sharing for developers";
    homepage = "https://screego.net";