mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +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
|
||||
, 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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user