diff options
author | Colin Arnott <colin@urandom.co.uk> | 2022-11-08 04:14:19 +0000 |
---|---|---|
committer | Colin Arnott <colin@urandom.co.uk> | 2022-11-26 02:54:25 +0000 |
commit | 0c540ad804af0e76c0be70b78d7cc9cb7c70ee73 (patch) | |
tree | 912e6dbabe638939bde08ee10dc9acf2c12c9b66 /pkgs/tools/virtualization | |
parent | 150488101f3f86e7e4168cd4a9da474ce04e6c90 (diff) |
dockstarter: init at unstable-2022-10-26
Fixes #180060
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/dockstarter/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/dockstarter/default.nix b/pkgs/tools/virtualization/dockstarter/default.nix new file mode 100644 index 0000000000000..321722d753a3e --- /dev/null +++ b/pkgs/tools/virtualization/dockstarter/default.nix @@ -0,0 +1,43 @@ +{ bash +, coreutils +, fetchFromGitHub +, git +, lib +, makeWrapper +, ncurses +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "dockstarter"; + version = "unstable-2022-10-26"; + + src = fetchFromGitHub { + owner = "ghostwriters"; + repo = pname; + rev = "a1b6b6e29aa135c2a61ea67ca05e9e034856ca08"; + hash = "sha256-G26DFme6YaizdE5oHBo/IqV+1quu07Bp+IykXtO/GgA="; + }; + + dontBuild = false; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + install -Dm755 main.sh $out/bin/ds + wrapProgram $out/bin/ds --prefix PATH : ${lib.makeBinPath [ + bash + coreutils + git + ncurses + ]} + ''; + + meta = with lib; { + description = "DockSTARTer helps you get started with running apps in Docker."; + homepage = "https://dockstarter.com"; + license = licenses.mit; + maintainers = with maintainers; [ urandom ]; + mainProgram = "ds"; + }; +} |