fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, fetchFromGitHub
3, buildGoModule
4, pandoc
5, installShellFiles
6, nix-update-script
7, testers
8, eget
9}:
10
11buildGoModule rec {
12 pname = "eget";
13 version = "1.3.0";
14
15 src = fetchFromGitHub {
16 owner = "zyedidia";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "sha256-U4sfcmdv1LPddeLjV/eANdxysnOX8bd3PiJpMIDi6PE=";
20 };
21
22 vendorSha256 = "sha256-J8weaJSC+k8BnijG2Jm2GYUZmEhASrrCDxb46ZGmCMI=";
23
24 ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
25
26 nativeBuildInputs = [ pandoc installShellFiles ];
27
28 postInstall = ''
29 pandoc man/eget.md -s -t man -o eget.1
30 installManPage eget.1
31 '';
32
33 passthru = {
34 updateScript = nix-update-script { attrPath = pname; };
35 tests.version = testers.testVersion {
36 package = eget;
37 command = "eget -v";
38 version = "v${version}";
39 };
40 };
41
42 meta = with lib; {
43 description = "Easily install prebuilt binaries from GitHub";
44 homepage = "https://github.com/zyedidia/eget";
45 license = licenses.mit;
46 maintainers = with maintainers; [ zendo ];
47 };
48}