Commit 93220978 authored by Motiejus Jakštys's avatar Motiejus Jakštys
Browse files

undocker: 1.0.4 -> 1.2.2



Also change the origin website and add myself to the maintainers (I am
the upstream author).

Co-Authored-By: default avatarJohn Chadwick <johnwchadwick@gmail.com>
parent fdb5b331
Loading
Loading
Loading
Loading
+22 −11
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromSourcehut
, fetchFromGitea
, gnumake
}:
buildGoModule rec {
  pname = "undocker";
  version = "1.0.4";

  src = fetchFromSourcehut {
    owner = "~motiejus";
    repo = pname;
let
  version = "1.2.2";
  hash = "sha256-kBqNopcHpldU5oD6zoVjPjP84t12QFcbWBSNNgwImKg=";
  src = fetchFromGitea {
    domain = "git.jakstys.lt";
    owner = "motiejus";
    repo = "undocker";
    rev = "v${version}";
    hash = "sha256-I+pTbr1lKELyYlyHrx2gB+aeZ3/PmcePQfXu1ckhKAk=";
    hash = hash;
  };
in
buildGoModule {
  pname = "undocker";
  inherit version src;

  nativeBuildInputs = [ gnumake ];

  buildPhase = "make VSN=v${version} VSNHASH=${hash} undocker";

  installPhase = "install -D undocker $out/bin/undocker";

  vendorHash = null;

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