Skip to content

Commit

Permalink
gitkraken: clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Mar 25, 2017
1 parent a381ee8 commit 4f9e590
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/applications/version-management/gitkraken/default.nix
@@ -1,7 +1,7 @@
{stdenv, lib, libXcomposite, libgnome_keyring, makeWrapper, udev, curl, alsaLib
,libXfixes, atk, gtk2, libXrender, pango, gnome2, cairo, freetype, fontconfig
,libX11, libXi, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
,nss, nspr, cups, fetchurl, expat, gdk_pixbuf, libXdamage, libXrandr, dbus
{ stdenv, lib, libXcomposite, libgnome_keyring, makeWrapper, udev, curl, alsaLib
, libXfixes, atk, gtk2, libXrender, pango, gnome2, cairo, freetype, fontconfig
, libX11, libXi, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
, nss, nspr, cups, fetchurl, expat, gdk_pixbuf, libXdamage, libXrandr, dbus
}:

with stdenv.lib;
Expand Down Expand Up @@ -49,14 +49,16 @@ stdenv.mkDerivation rec {
libgnome_keyring
];

phases = [ "unpackPhase" "installPhase" ];
nativeBuildInputs = [ makeWrapper ];

buildInputs = [ makeWrapper ];
dontBuild = true;

installPhase = ''
mkdir -p "$out/opt/gitkraken"
cp -r ./* "$out/opt/gitkraken"
fixupPhase
'';

postFixup = ''
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--set-rpath "$libPath:$out/opt/gitkraken" "$out/opt/gitkraken/gitkraken"
wrapProgram $out/opt/gitkraken/gitkraken \
Expand Down

0 comments on commit 4f9e590

Please sign in to comment.