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
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:
30
pkgs/progressbar/default.nix
Normal file
30
pkgs/progressbar/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user