diff --git a/pkgs/progressbar/default.nix b/pkgs/progressbar/default.nix new file mode 100644 index 0000000..55a987b --- /dev/null +++ b/pkgs/progressbar/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, ncurses +, fetchFromGitHub +, breakpointHook +}: + +stdenv.mkDerivation { + pname = "progressbar"; + version = "ac56232"; + src = fetchFromGitHub { + owner = "doches"; + repo = "progressbar"; + rev = "ac56232610abf58cc2db2bc86efc8fcba7dfe8c2"; + hash = "sha256-fgVIQAAtL5wSuWhGSKOTmlS2gvigInDqzfpILtGplLM"; + }; + nativeBuildInputs = [ + ncurses.dev + breakpointHook + ]; + buildInputs = [ + ncurses + ]; + outputs = [ "out" "dev" ]; + installPhase = '' + runHook preInstall + install -Dm644 -t $out/lib libprogressbar.{so,a} + install -Dm644 -t $dev/include/progressbar include/progressbar/*.h + runHook postInstall + ''; +}