-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefault.nix
More file actions
36 lines (30 loc) · 823 Bytes
/
default.nix
File metadata and controls
36 lines (30 loc) · 823 Bytes
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
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "goshot";
version = "0.4.7"; # Updated to latest version
src = fetchFromGitHub {
owner = "watzon";
repo = "goshot";
rev = "v${version}";
hash = "sha256-OJD6J+M8NhkxtY60F6I9lAwfEZnR8jmgdIT8vTbOuSo=";
};
# Let Nix handle the vendoring
vendorHash = "sha256-Nc8aIpbwa0ac2tQUaVVaJHF7XxQcIpCQu5saJnAi3xI=";
# Disable tests as they require embedded fonts
doCheck = false;
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "A simple screenshot tool written in Go";
homepage = "https://github.com/watzon/goshot";
license = licenses.mit;
maintainers = with maintainers; [ /* Add your nixpkgs maintainer name here */ ];
mainProgram = "goshot";
platforms = platforms.unix;
};
}