depot/third_party/nixpkgs/pkgs/tools/misc/undocker/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitea
, gnumake
}:
let
version = "1.2.2";
hash = "sha256-kBqNopcHpldU5oD6zoVjPjP84t12QFcbWBSNNgwImKg=";
src = fetchFromGitea {
domain = "git.jakstys.lt";
owner = "motiejus";
repo = "undocker";
rev = "v${version}";
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.jakstys.lt/motiejus/undocker";
description = "CLI tool to convert a Docker image to a flattened rootfs tarball";
license = licenses.asl20;
maintainers = with maintainers; [ jordanisaacs motiejus ];
mainProgram = "undocker";
};
}