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
31 lines
653 B
Nix
31 lines
653 B
Nix
{ 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
|
|
'';
|
|
}
|