Merge pull request #198619 from zendo/gitnuro

This commit is contained in:
Sandro 2022-11-04 01:10:01 +01:00 committed by GitHub
commit 1825beb050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, stdenv
, fetchurl
, makeWrapper
, copyDesktopItems
, makeDesktopItem
, jre
}:
stdenv.mkDerivation rec {
pname = "gitnuro";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/JetpackDuba/Gitnuro/releases/download/v${version}/Gitnuro-linux-${version}.jar";
hash = "sha256-tAFFl14mmXhLr6V/vTDe9lwX7trsaTWgIqkwxD3mBUw=";
};
icon = fetchurl {
url = "https://raw.githubusercontent.com/JetpackDuba/Gitnuro/4cfc45069c176f807d9bfb1a7cba410257078d3c/icons/logo.svg";
hash = "sha256-QGJcWTSJesIpDArOWiS3Kn1iznzeMFzvqS+CuNXh3as=";
};
dontUnpack = true;
nativeBuildInputs = [
makeWrapper
copyDesktopItems
];
installPhase = ''
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/gitnuro --add-flags "-jar $src"
install -Dm444 $icon $out/share/icons/hicolor/scalable/apps/com.jetpackduba.Gitnuro.svg
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = "Gitnuro";
exec = "gitnuro";
icon = "com.jetpackduba.Gitnuro";
desktopName = "Gitnuro";
categories = [ "Development" ];
comment = meta.description;
})
];
meta = with lib; {
description = "A FOSS Git multiplatform client based on Compose and JGit";
homepage = "https://gitnuro.jetpackduba.com";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ zendo ];
};
}

View File

@ -7205,6 +7205,8 @@ with pkgs;
gitleaks = callPackage ../tools/security/gitleaks { };
gitnuro = callPackage ../applications/version-management/git-and-tools/gitnuro { };
gitsign = callPackage ../tools/security/gitsign { };
gitaly = callPackage ../applications/version-management/gitlab/gitaly { };