feat: add gitbutler
parent
8ce8af36de
commit
ed9c5111e4
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -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 New Issue