anchor.diff:      comment = "Graphical Git client from Axosoft";
     };
   
  -  nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook ];
  +  nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
     buildInputs = [ gtk3 gnome3.adwaita-icon-theme ];
  -
  -  unpackCmd = ''
  -    mkdir out
  -    dpkg -x $curSrc out
  -  '';
   
     installPhase = ''
       runHook preInstall
  -    mkdir $out
  -    pushd usr
  -    pushd share
  -    substituteInPlace applications/gitkraken.desktop \
  -      --replace /usr/share/gitkraken $out/bin
  -    popd
  -    rm -rf bin/gitkraken share/lintian
  -    cp -av share bin $out/
  -    popd
   
  +    mkdir -p $out/share/gitkraken/
  +    cp -R $src/* $out/share/gitkraken/
  +
  +    mkdir -p $out/bin
       ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
  +
  +    mkdir -p $out/share/applications
  +    cp ${desktopItem}/share/applications/* $out/share/applications/
  +
  +    substituteInPlace $out/share/applications/gitkraken.desktop \
  +      --replace $out/usr/share/gitkraken $out/bin
  +
  +    mkdir -p $out/share/pixmaps
  +    cp gitkraken.png $out/share/pixmaps/gitkraken.png
  +
       runHook postInstall
     '';
   
  
positive.code: in
  stdenv.mkDerivation rec {
    pname = "gitkraken";
    version = "6.4.1";
  
    src = fetchurl {
      url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb";
      sha256 = "1w8iwpbr6nwzhhf63fvr7pd66yjx3jgjy4gx5y02qxa3ip5psq5b";
    };
  
    libPath = makeLibraryPath [
      stdenv.cc.cc.lib
  
negative.code:     libgnome-keyring
      openssl
      at-spi2-atk
      at-spi2-core
      libuuid
      e2fsprogs
      krb5
  