-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault.nix
44 lines (35 loc) · 885 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, nix-update-script
}:
buildGoModule
rec {
pname = "bobibo";
version = "1.4.0";
src = fetchFromGitHub {
owner = "orzation";
repo = pname;
rev = "v${version}";
hash = "sha256-/esS/CyjHdHMVsIdugRoggecMI//tGuCaayEiNBEocM=";
};
vendorHash = "sha256-LzP2pgRheL/NRQmjluqKb8/yxAuFjbmXVU57HdrGSDU=";
subPackages = [ "cli/" ];
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
nativeBuildInputs = [
pkg-config
];
doCheck = false;
postInstall = ''
mv $out/bin/cli $out/bin/bobibo
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A cli-app, convert pictures to ascii arts.";
homepage = "https://github.com/orzation/bobibo";
license = licenses.gpl3;
mainProgram = "bobibo";
maintainers = with maintainers; [ msqtt ];
};
}