1{ bash
2, coreutils
3, fetchFromGitHub
4, git
5, lib
6, makeWrapper
7, ncurses
8, stdenv
9}:
10
11stdenv.mkDerivation rec {
12 pname = "dockstarter";
13 version = "unstable-2022-10-26";
14
15 src = fetchFromGitHub {
16 owner = "ghostwriters";
17 repo = pname;
18 rev = "a1b6b6e29aa135c2a61ea67ca05e9e034856ca08";
19 hash = "sha256-G26DFme6YaizdE5oHBo/IqV+1quu07Bp+IykXtO/GgA=";
20 };
21
22 dontBuild = false;
23
24 nativeBuildInputs = [ makeWrapper ];
25
26 installPhase = ''
27 install -Dm755 main.sh $out/bin/ds
28 wrapProgram $out/bin/ds --prefix PATH : ${lib.makeBinPath [
29 bash
30 coreutils
31 git
32 ncurses
33 ]}
34 '';
35
36 meta = with lib; {
37 description = "DockSTARTer helps you get started with running apps in Docker.";
38 homepage = "https://dockstarter.com";
39 license = licenses.mit;
40 maintainers = with maintainers; [ urandom ];
41 mainProgram = "ds";
42 };
43}