Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitbutler: init at 0.10.6 #289131

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@ in mkLicense lset) ({
fullName = "GNU Free Documentation License v1.3 or later";
};

fsl-10-mit = {
fullName = "Functional Source License, Version 1.0, MIT Change License";
url = "https://github.com/getsentry/fsl.software/blob/main/FSL-1.0-MIT.template.md";
free = false;
};

ffsl = {
fullName = "Floodgap Free Software License";
url = "https://www.floodgap.com/software/ffsl/license.html";
Expand Down
71 changes: 71 additions & 0 deletions pkgs/by-name/gi/gitbutler/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{ stdenv
, lib
, fetchurl
, wrapGAppsHook
, dpkg
, autoPatchelfHook
, zlib
, webkitgtk
, gtk3
, cairo
, gdk-pixbuf
, libsoup
, glib
, libappindicator
, libayatana-appindicator
}:
let
version = "0.10.6";
build = "619";
in
stdenv.mkDerivation {
pname = "gitbutler";
inherit version;

src = fetchurl {
url = "https://releases.gitbutler.com/releases/release/${version}-${build}/linux/x86_64/git-butler_${version}_amd64.deb";
hash = "sha256-3Nq1QVCHeP8RKaG0PFojtBXIBm+eRKlqqjc65HPWzGY=";
};

unpackCmd = ''
dpkg-deb -x $curSrc .
'';

dontBuild = true;

nativeBuildInputs = [
dpkg
autoPatchelfHook
wrapGAppsHook
];

buildInputs = [
zlib
webkitgtk
gtk3
cairo
gdk-pixbuf
libsoup
glib
];

runtimeDependencies = [
libappindicator
libayatana-appindicator
];

installPhase = ''
runHook preInstall
cp -dr . $out
runHook postInstall
'';

meta = with lib; {
description = "A Git client for simultaneous branches on top of your existing workflow";
homepage = "https://gitbutler.com/";
license = licenses.fsl-10-mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ bobvanderlinden ];
mainProgram = "git-butler";
};
}
Loading