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: John Chadwick <johnwchadwick@gmail.com>
This commit is contained in:
Motiejus Jakštys 2024-05-10 15:01:20 +03:00
parent fdb5b33142
commit 93220978d1

View File

@ -1,25 +1,36 @@
{ 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";
};
}