-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
default.nix
29 lines (24 loc) · 859 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, pkgs, }:
pkgs.buildGoModule rec {
pname = "goji";
version = "0.1.2";
src = lib.cleanSource ./.;
# pkgs.fetchFromGitHub {
# owner = "muandane";
# repo = "goji";
# rev = "v${version}";
# sha256 = "sha256-QFll5qr+b+bGl2QJ+rQ72FuETBSeqou/gvcvIY3oDIo=";
# };
vendorHash = "sha256-YKnIAviOlLVHaD3lQKhrDlLW1f0cEjY0Az4RyuNWmzg=";
subPackages = [ "." ];
ldflags = [ "-s" "-w" "-X github.com/muandane/goji/cmd.version=${version}" ];
meta = with lib; {
homepage = "https://github.com/muandane/goji";
description =
" Commitizen-like Emoji Commit Tool written in Go (think cz-emoji and other commitizen adapters but in go) 🚀 ";
changelog =
"https://github.com/muandane/goji/blob/v${version}/CHANGELOG.md";
license = "Apache 2.0 license Zine El Abidine Moualhi";
mainProgram = "goji";
};
}