at 24.11-pre 36 lines 836 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitea 4, gnumake 5}: 6let 7 version = "1.2.2"; 8 hash = "sha256-kBqNopcHpldU5oD6zoVjPjP84t12QFcbWBSNNgwImKg="; 9 src = fetchFromGitea { 10 domain = "git.jakstys.lt"; 11 owner = "motiejus"; 12 repo = "undocker"; 13 rev = "v${version}"; 14 hash = hash; 15 }; 16in 17buildGoModule { 18 pname = "undocker"; 19 inherit version src; 20 21 nativeBuildInputs = [ gnumake ]; 22 23 buildPhase = "make VSN=v${version} VSNHASH=${hash} undocker"; 24 25 installPhase = "install -D undocker $out/bin/undocker"; 26 27 vendorHash = null; 28 29 meta = with lib; { 30 homepage = "https://git.jakstys.lt/motiejus/undocker"; 31 description = "A CLI tool to convert a Docker image to a flattened rootfs tarball"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ jordanisaacs motiejus ]; 34 mainProgram = "undocker"; 35 }; 36}