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

31 lines
848 B
Nix
Raw Normal View History

{ lib, 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";
2021-03-08 21:51:41 +01:00
version = "0.10.0";
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}";
2021-03-08 21:51:41 +01:00
sha256 = "sha256-1pmw8pUlek5FlI1oAuvLSqDow7hw5rw86DRDZ7pFAmA=";
2018-12-21 14:15:17 +01:00
};
2021-03-08 21:51:41 +01:00
vendorSha256 = "sha256-0gJ3dAPoilh3IWkuesy8geNsuI1T0DN64XvInc9LvlM=";
2018-12-21 14:15:17 +01:00
doCheck = false;
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with 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";
2018-12-21 14:15:17 +01:00
license = licenses.mit;
2021-03-08 21:51:41 +01:00
maintainers = with maintainers; [ marsam spacekookie SuperSandro2000 ];
2018-12-21 14:15:17 +01:00
};
}