nixpkgs/pkgs/development/tools/dive/default.nix

27 lines
747 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, gpgme, lvm2 }:
2018-12-21 14:15:17 +01:00
2019-05-25 04:00:00 +02:00
buildGoModule rec {
2018-12-21 14:15:17 +01:00
pname = "dive";
2020-01-19 00:14:17 +01:00
version = "0.9.1";
2018-12-21 14:15:17 +01:00
src = fetchFromGitHub {
owner = "wagoodman";
2019-05-25 04:00:00 +02:00
repo = pname;
2018-12-21 14:15:17 +01:00
rev = "v${version}";
2020-01-19 00:14:17 +01:00
sha256 = "1dqaqzmb74kf6q70wxfbsrbbfmxl82rj7r5kpsg5znm99filk3ny";
2018-12-21 14:15:17 +01:00
};
2020-01-19 00:14:17 +01:00
modSha256 = "1y8mqxlzbizra2m9aayp6w07s39gddvm5igdaw9kwxwjwvd1dbfc";
2018-12-21 14:15:17 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
meta = with stdenv.lib; {
2018-12-21 14:15:17 +01:00
description = "A tool for exploring each layer in a docker image";
homepage = https://github.com/wagoodman/dive;
license = licenses.mit;
2019-02-21 14:37:49 +01:00
maintainers = with maintainers; [ marsam spacekookie ];
2018-12-21 14:15:17 +01:00
};
}