about summary refs log tree commit diff
path: root/pkgs/tools/misc/undocker/default.nix
blob: a2ce7dfb7aa167e8dead9d782875214d2063b5c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib
, buildGoModule
, fetchFromSourcehut
}:
buildGoModule rec {
  pname = "undocker";
  version = "1.0.4";

  src = fetchFromSourcehut {
    owner = "~motiejus";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-I+pTbr1lKELyYlyHrx2gB+aeZ3/PmcePQfXu1ckhKAk=";
  };

  vendorHash = null;

  meta = with lib; {
    homepage = "https://git.sr.ht/~motiejus/undocker";
    description = "A CLI tool to convert a Docker image to a flattened rootfs tarball";
    license = licenses.asl20;
    maintainers = with maintainers; [ jordanisaacs ];
    mainProgram = "undocker";
  };
}