progressbar: init
Some checks failed
Build and populate cache / tests (sydpkgs, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, sydpkgs) (push) Has been cancelled

This commit is contained in:
2026-04-11 15:21:06 -06:00
parent 03f6a67a0a
commit e44c957573

View File

@@ -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
'';
}