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
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.3";
|
|
|
|
hash = "sha256-hyP85pYtXxucAliilUt9Y2qnrfPeSjeGsYEFJndJWyA=";
|
2024-05-15 15:35:15 +00:00
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
};
|
|
|
|
}
|