-
Notifications
You must be signed in to change notification settings - Fork 239
/
Copy pathflake.nix
54 lines (49 loc) · 1.14 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
{
description = "gh-dash";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
{
overlays.default = final: prev: {
gh-dash = self.packages.${prev.system}.default;
};
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
gh-dash = pkgs.buildGoModule {
pname = "gh-dash";
version = "v4.10.0";
src = ./.;
vendorHash = "sha256-lqmz+6Cr9U5IBoJ5OeSN6HKY/nKSAmszfvifzbxG7NE=";
};
in
{
packages = {
default = gh-dash;
inherit gh-dash;
};
devShells.default = pkgs.mkShell {
name = "gh-dash";
inherit (gh-dash) nativeBuildInputs buildInputs;
packages = with pkgs; [
fd
goimports-reviser
golangci-lint
golangci-lint-langserver
gopls
nerdfix
(callPackage ./docs { })
];
};
}
);
}