parent
d1d2f82ea3
commit
3ff2db2022
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
# Personal projects
|
# Personal projects
|
||||||
tmpl = pkgs.callPackage ./pkgs/tmpl {};
|
tmpl = pkgs.callPackage ./pkgs/tmpl {};
|
||||||
|
imp = pkgs.callPackage ./pkgs/imp {};
|
||||||
|
|
||||||
# Other projects
|
# Other projects
|
||||||
prospect-mail = pkgs.callPackage ./pkgs/prospect-mail {};
|
prospect-mail = pkgs.callPackage ./pkgs/prospect-mail {};
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitea,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "imp";
|
||||||
|
version = "0.0.4";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.jojodev.com";
|
||||||
|
owner = "jolheiser";
|
||||||
|
repo = "imp";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-20xDL0M/ZMV9dX4zBxR9vPawub4zONnuXwC8Hxml9ow=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-1az96BTJrkj6tigca5YNwEB9fX+BZX2A+aBttOQfo9g=";
|
||||||
|
|
||||||
|
ldflags = ["-s" "-w" "-X=main.Version=${version}"];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Opinionated import formatter";
|
||||||
|
homepage = "https://git.jojodev.com/jolheiser/imp";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue