-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
60 lines (52 loc) · 1.56 KB
/
flake.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
description = "A cli tool for getting insight into your gitlab pipelines";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
let
version = "0.0.1";
rev = "0c3b049ee6837bdebfda18dc670999a20f9ac7cd";
hash = "sha256-LxWrjZfGjcN10qg5XMWaCAF42KTUS5ziNRc+6cIeHVs=";
vendorHash = "sha256-b+BT/IZ6rvXsLokhBWruoA71N3hUsbuipD4V9D1ypEQ=";
in
{
packages = flake-utils.lib.eachDefaultSystemPassThrough (system: {
"${system}" = {
default = self.packages."${system}".gogl-ci;
gogl-ci = nixpkgs.legacyPackages.x86_64-linux.buildGoModule {
pname = "gogl-ci";
version = "${version}";
vendorHash = "${vendorHash}";
proxyVendor = true;
tags = [ "netgo" ];
src = nixpkgs.legacyPackages.x86_64-linux.fetchgit {
name = "gogl-ci";
url = "https://github.com/WatcherWhale/gogl-ci.git";
rev = "${rev}";
hash = "${hash}";
};
ldflags = [
"-w"
"-s"
];
meta = {
descirption = "GoGL-CI: A cli tool for getting insight into your gitlab pipelines";
mainProgram = "gogl";
};
subPackages = [ "cmd/cli" ];
postInstall = ''
mv $out/bin/cli $out/bin/gogl
'';
};
};
});
};
}