2019-11-05 23:00:00 +00:00
|
|
|
{ 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";
|
2019-11-05 23:00:00 +00:00
|
|
|
version = "0.9.0";
|
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}";
|
2019-11-05 23:00:00 +00:00
|
|
|
sha256 = "0bqmrva7rx6al50fmy4gvf853csascc5mj6ihgg7ydsy0d99j5qn";
|
2018-12-21 13:15:17 +00:00
|
|
|
};
|
|
|
|
|
2019-11-05 23:00:00 +00:00
|
|
|
modSha256 = "0hb7bq8v6xr8xqni1iv3zkqdnknfy539sm0vxqal1mhvs5yg06m0";
|
2018-12-21 13:15:17 +00:00
|
|
|
|
2019-11-05 23:00:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-21 13:15:17 +00:00
|
|
|
description = "A tool for exploring each layer in a docker image";
|
|
|
|
homepage = https://github.com/wagoodman/dive;
|
|
|
|
license = licenses.mit;
|
2019-02-21 13:37:49 +00:00
|
|
|
maintainers = with maintainers; [ marsam spacekookie ];
|
2018-12-21 13:15:17 +00:00
|
|
|
};
|
|
|
|
}
|