2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, gpgme, lvm2 }:
|
2018-12-21 13:15:17 +00:00
|
|
|
|
2019-05-25 03:00:00 +01:00
|
|
|
buildGoModule rec {
|
2018-12-21 13:15:17 +00:00
|
|
|
pname = "dive";
|
2020-02-09 21:20:00 +00:00
|
|
|
version = "0.9.2";
|
2018-12-21 13:15:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wagoodman";
|
2019-05-25 03:00:00 +01:00
|
|
|
repo = pname;
|
2018-12-21 13:15:17 +00:00
|
|
|
rev = "v${version}";
|
2020-02-09 21:20:00 +00:00
|
|
|
sha256 = "1v69xbkjmyzm5g4wi9amjk65fs4qgxkqc0dvq55vqjigzrranp22";
|
2018-12-21 13:15:17 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "0219q9zjc0i6fbdngqh0wjpmq8wj5bjiz5dls0c1aam0lh4vwkhc";
|
2018-12-21 13:15:17 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-11-05 23:00:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
|
2019-11-05 23:00:00 +00:00
|
|
|
|
2020-02-09 21:20:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-12-21 13:15:17 +00:00
|
|
|
description = "A tool for exploring each layer in a docker image";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wagoodman/dive";
|
2018-12-21 13:15:17 +00:00
|
|
|
license = licenses.mit;
|
2019-02-21 13:37:49 +00:00
|
|
|
maintainers = with maintainers; [ marsam spacekookie ];
|
2018-12-21 13:15:17 +00:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|