Add bl3auto

This commit is contained in:
Erwin Boskma 2022-06-08 17:23:31 +02:00
parent 1a200706af
commit b37fd534d9
Signed by: erwin
GPG key ID: 270B20D17394F7E5
3 changed files with 25 additions and 0 deletions

View file

@ -226,6 +226,7 @@
rofi-wayland = pkgs.rofi-wayland; rofi-wayland = pkgs.rofi-wayland;
nix-plugins = pkgs.nix-plugins; nix-plugins = pkgs.nix-plugins;
backscrub = pkgs.backscrub; backscrub = pkgs.backscrub;
bl3auto = pkgs.bl3auto;
}; };
apps = { apps = {

View file

@ -21,4 +21,6 @@ final: prev: rec {
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ prev.scdoc ]; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ prev.scdoc ];
}); });
bl3auto = prev.pkgs.callPackage ../pkgs/bl3auto { inherit (prev.pkgs) lib buildGoModule fetchFromGitHub; };
} }

22
pkgs/bl3auto/default.nix Normal file
View file

@ -0,0 +1,22 @@
{ lib, buildGoModule, fetchFromGitHub }:
let
version = "2.2.18";
in
buildGoModule {
pname = "bl3auto";
inherit version;
src = fetchFromGitHub {
owner = "jauderho";
repo = "bl3auto";
# rev = "c3126afa420a0d2117c473ef66564dfdb35d483c";
rev = "v${version}";
sha256 = "RaRND4HBBIjkz65k/1Xtb9nsJD82jEBkMoFPgelCJ4s=";
};
vendorSha256 = "Xfv6usoIkug7scM1ilzlIALfJd+fqiQlM9BY10EZdTU=";
postInstall = ''
mv $out/bin/cmd $out/bin/bl3auto
'';
}