nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildGoPackage
2, lib
3, fetchFromGitHub
4}:
5
6buildGoPackage rec {
7 pname = "maligned-unstable";
8 version = "2018-07-07";
9 rev = "6e39bd26a8c8b58c5a22129593044655a9e25959";
10
11 goPackagePath = "github.com/mdempsky/maligned";
12
13 src = fetchFromGitHub {
14 inherit rev;
15
16 owner = "mdempsky";
17 repo = "maligned";
18 sha256 = "08inr5xjqv9flrlyhqd8ck1q26y5xb6iilz0xkb6bqa4dl5ialhi";
19 };
20
21 goDeps = ./deps.nix;
22
23 meta = with lib; {
24 description = "Tool to detect Go structs that would take less memory if their fields were sorted.";
25 homepage = https://github.com/mdempsky/maligned;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ kalbasit ];
28 platforms = platforms.linux ++ platforms.darwin;
29 };
30}