depot/third_party/nixpkgs/pkgs/tools/misc/undocker/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitea
, gnumake
}:
let
version = "1.2.3";
hash = "sha256-hyP85pYtXxucAliilUt9Y2qnrfPeSjeGsYEFJndJWyA=";
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";
};
}