Add bl3auto
This commit is contained in:
parent
1a200706af
commit
b37fd534d9
3 changed files with 25 additions and 0 deletions
|
@ -226,6 +226,7 @@
|
|||
rofi-wayland = pkgs.rofi-wayland;
|
||||
nix-plugins = pkgs.nix-plugins;
|
||||
backscrub = pkgs.backscrub;
|
||||
bl3auto = pkgs.bl3auto;
|
||||
};
|
||||
|
||||
apps = {
|
||||
|
|
|
@ -21,4 +21,6 @@ final: prev: rec {
|
|||
|
||||
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ prev.scdoc ];
|
||||
});
|
||||
|
||||
bl3auto = prev.pkgs.callPackage ../pkgs/bl3auto { inherit (prev.pkgs) lib buildGoModule fetchFromGitHub; };
|
||||
}
|
||||
|
|
22
pkgs/bl3auto/default.nix
Normal file
22
pkgs/bl3auto/default.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue