Unverified Commit 155b654f authored by Nicolas Goudry's avatar Nicolas Goudry
Browse files

gitkraken: nixfmt-rfc-style formatting

parent 01542ebe
Loading
Loading
Loading
Loading
+98 −26
Original line number Diff line number Diff line
{ lib, stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curlWithGnuTls, alsa-lib
, libXfixes, atk, gtk3, libXrender, pango, adwaita-icon-theme, cairo, freetype, fontconfig
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
, nss, nspr, cups, fetchzip, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
, makeDesktopItem, openssl, wrapGAppsHook3, makeShellWrapper, at-spi2-atk, at-spi2-core, libuuid
, e2fsprogs, krb5, libdrm, mesa, unzip, copyDesktopItems, libxshmfence, libxkbcommon, git
, libGL, zlib, cacert
{
  lib,
  stdenv,
  libXcomposite,
  libgnome-keyring,
  makeWrapper,
  udev,
  curlWithGnuTls,
  alsa-lib,
  libXfixes,
  atk,
  gtk3,
  libXrender,
  pango,
  adwaita-icon-theme,
  cairo,
  freetype,
  fontconfig,
  libX11,
  libXi,
  libxcb,
  libXext,
  libXcursor,
  glib,
  libXScrnSaver,
  libxkbfile,
  libXtst,
  nss,
  nspr,
  cups,
  fetchzip,
  expat,
  gdk-pixbuf,
  libXdamage,
  libXrandr,
  dbus,
  makeDesktopItem,
  openssl,
  wrapGAppsHook3,
  makeShellWrapper,
  at-spi2-atk,
  at-spi2-core,
  libuuid,
  e2fsprogs,
  krb5,
  libdrm,
  mesa,
  unzip,
  copyDesktopItems,
  libxshmfence,
  libxkbcommon,
  git,
  libGL,
  zlib,
  cacert,
}:

with lib;
@@ -40,12 +88,22 @@ let
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
    license = licenses.unfree;
    platforms = builtins.attrNames srcs;
    maintainers = with maintainers; [ xnwdd evanjs arkivm nicolas-goudry ];
    maintainers = with maintainers; [
      xnwdd
      evanjs
      arkivm
      nicolas-goudry
    ];
    mainProgram = "gitkraken";
  };

  linux = stdenv.mkDerivation rec {
    inherit pname version src meta;
    inherit
      pname
      version
      src
      meta
      ;

    dontBuild = true;
    dontConfigure = true;
@@ -96,7 +154,8 @@ let
      zlib
    ];

    desktopItems = [ (makeDesktopItem {
    desktopItems = [
      (makeDesktopItem {
        name = "GitKraken Desktop";
        exec = "gitkraken";
        icon = "gitkraken";
@@ -104,10 +163,17 @@ let
        genericName = "Git Client";
        categories = [ "Development" ];
        comment = "Unleash your repo";
    }) ];
      })
    ];

    nativeBuildInputs = [ copyDesktopItems (wrapGAppsHook3.override { makeWrapper = makeShellWrapper; }) ];
    buildInputs = [ gtk3 adwaita-icon-theme ];
    nativeBuildInputs = [
      copyDesktopItems
      (wrapGAppsHook3.override { makeWrapper = makeShellWrapper; })
    ];
    buildInputs = [
      gtk3
      adwaita-icon-theme
    ];

    # avoid double-wrapping
    dontWrapGApps = true;
@@ -159,9 +225,17 @@ let
  };

  darwin = stdenv.mkDerivation {
    inherit pname version src meta;

    nativeBuildInputs = [ unzip makeWrapper ];
    inherit
      pname
      version
      src
      meta
      ;

    nativeBuildInputs = [
      unzip
      makeWrapper
    ];

    installPhase = ''
      runHook preInstall
@@ -177,6 +251,4 @@ let
    dontFixup = true;
  };
in
if stdenv.isDarwin
then darwin
else linux
if stdenv.isDarwin then darwin else linux