mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
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:
parent
fdb5b33142
commit
93220978d1
@ -1,25 +1,36 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromSourcehut
|
, fetchFromGitea
|
||||||
|
, gnumake
|
||||||
}:
|
}:
|
||||||
buildGoModule rec {
|
let
|
||||||
pname = "undocker";
|
version = "1.2.2";
|
||||||
version = "1.0.4";
|
hash = "sha256-kBqNopcHpldU5oD6zoVjPjP84t12QFcbWBSNNgwImKg=";
|
||||||
|
src = fetchFromGitea {
|
||||||
src = fetchFromSourcehut {
|
domain = "git.jakstys.lt";
|
||||||
owner = "~motiejus";
|
owner = "motiejus";
|
||||||
repo = pname;
|
repo = "undocker";
|
||||||
rev = "v${version}";
|
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;
|
vendorHash = null;
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
description = "A CLI tool to convert a Docker image to a flattened rootfs tarball";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ jordanisaacs ];
|
maintainers = with maintainers; [ jordanisaacs motiejus ];
|
||||||
mainProgram = "undocker";
|
mainProgram = "undocker";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user