feat: add gitbutler
This commit is contained in:
parent
8ce8af36de
commit
ed9c5111e4
2 changed files with 40 additions and 0 deletions
24
modules/programs/gitbutler/default.nix
Normal file
24
modules/programs/gitbutler/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ config
|
||||||
|
, pkgs
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||||
|
|
||||||
|
cfg = config.my.programs.gitbutler;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.programs.gitbutler = {
|
||||||
|
enable = mkEnableOption "gitbutler";
|
||||||
|
package = mkOption {
|
||||||
|
default = pkgs.callPackage ./package.nix { };
|
||||||
|
type = types.package;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
};
|
||||||
|
}
|
16
modules/programs/gitbutler/package.nix
Normal file
16
modules/programs/gitbutler/package.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ fetchzip, appimageTools }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "git-butler";
|
||||||
|
version = "0.12.4";
|
||||||
|
buildNum = "994";
|
||||||
|
|
||||||
|
srcZipped = fetchzip {
|
||||||
|
url = "https://releases.gitbutler.com/releases/release/${version}-${buildNum}/linux/x86_64/git-butler_${version}_amd64.AppImage.tar.gz";
|
||||||
|
hash = "sha256-+QP+H0bVSLbobv/W6lFBbl08RnwKvG8BVo68bwMrAzM=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version;
|
||||||
|
src = "${srcZipped}/git-butler_${version}_amd64.AppImage";
|
||||||
|
}
|
Loading…
Reference in a new issue