diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-28 00:59:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 00:59:40 +0100 |
commit | b4fcfe4144c638a2a82addd76084a4c9a138814c (patch) | |
tree | 4542b74af8e7646487e9d60a3b5242fa21787c79 /pkgs/tools/virtualization | |
parent | 4da241459471020a1f0d2ee6ed9e525f67a9122c (diff) | |
parent | 0c540ad804af0e76c0be70b78d7cc9cb7c70ee73 (diff) |
Merge pull request #200139 from urandom2/dockstarter
Fixes https://github.com/NixOS/nixpkgs/issues/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"; + }; +} |