lol
at 22.05-pre 48 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, resholvePackage 4, substituteAll 5, bash 6, coreutils 7, goss 8, which 9}: 10 11resholvePackage rec { 12 pname = "dgoss"; 13 version = "0.3.16"; 14 15 src = fetchFromGitHub { 16 owner = "aelsabbahy"; 17 repo = "goss"; 18 rev = "v${version}"; 19 sha256 = "1m5w5vwmc9knvaihk61848rlq7qgdyylzpcwi64z84rkw8qdnj6p"; 20 }; 21 22 dontConfigure = true; 23 dontBuild = true; 24 25 installPhase = '' 26 sed -i '2i GOSS_PATH=${goss}/bin/goss' extras/dgoss/dgoss 27 install -D extras/dgoss/dgoss $out/bin/dgoss 28 ''; 29 30 solutions = { 31 default = { 32 scripts = [ "bin/dgoss" ]; 33 interpreter = "${bash}/bin/bash"; 34 inputs = [ coreutils which ]; 35 fake = { 36 external = [ "docker" ]; 37 }; 38 }; 39 }; 40 41 meta = with lib; { 42 homepage = "https://github.com/aelsabbahy/goss/blob/v${version}/extras/dgoss/README.md"; 43 description = "Convenience wrapper around goss that aims to bring the simplicity of goss to docker containers"; 44 license = licenses.asl20; 45 platforms = platforms.linux; 46 maintainers = with maintainers; [ hyzual ]; 47 }; 48}