2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2024-05-15 15:35:15 +00:00
|
|
|
, fetchFromGitea
|
|
|
|
, gnumake
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
2024-05-15 15:35:15 +00:00
|
|
|
let
|
|
|
|
version = "1.2.2";
|
|
|
|
hash = "sha256-kBqNopcHpldU5oD6zoVjPjP84t12QFcbWBSNNgwImKg=";
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.jakstys.lt";
|
|
|
|
owner = "motiejus";
|
|
|
|
repo = "undocker";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = hash;
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "undocker";
|
|
|
|
inherit version src;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gnumake ];
|
|
|
|
|
|
|
|
buildPhase = "make VSN=v${version} VSNHASH=${hash} undocker";
|
|
|
|
|
|
|
|
installPhase = "install -D undocker $out/bin/undocker";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = null;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://git.jakstys.lt/motiejus/undocker";
|
2022-12-02 08:20:57 +00:00
|
|
|
description = "A CLI tool to convert a Docker image to a flattened rootfs tarball";
|
2023-02-16 17:41:37 +00:00
|
|
|
license = licenses.asl20;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ jordanisaacs motiejus ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "undocker";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|