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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
898 B
Nix
Raw Normal View History

2022-07-19 13:41:26 +00:00
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, fetchpatch
, pkg-config
, btrfs-progs
, gpgme
, lvm2
}:
2018-12-21 13:15:17 +00:00
2019-05-25 02:00:00 +00:00
buildGoModule rec {
2018-12-21 13:15:17 +00:00
pname = "dive";
version = "0.12.0";
2018-12-21 13:15:17 +00:00
src = fetchFromGitHub {
owner = "wagoodman";
2023-07-07 21:33:59 +00:00
repo = "dive";
2018-12-21 13:15:17 +00:00
rev = "v${version}";
hash = "sha256-CuVRFybsn7PVPgz3fz5ghpjOEOsTYTv6uUAgRgFewFw=";
2018-12-21 13:15:17 +00:00
};
vendorHash = "sha256-uzzawa/Doo6j/Fh9dJMzGKbpp24UTLAo9VGmuQ80IZE=";
2018-12-21 13:15:17 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
meta = with 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";
changelog = "https://github.com/wagoodman/dive/releases/tag/v${version}";
2018-12-21 13:15:17 +00:00
license = licenses.mit;
2023-07-07 21:33:59 +00:00
maintainers = with maintainers; [ marsam SuperSandro2000 ];
2018-12-21 13:15:17 +00:00
};
}