pkgs: add digestpp
This commit is contained in:
parent
d423a03663
commit
6a47703c08
|
@ -10,6 +10,8 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: {
|
||||||
|
|
||||||
diff-flake = pkgs.callPackage ./diff-flake { };
|
diff-flake = pkgs.callPackage ./diff-flake { };
|
||||||
|
|
||||||
|
digestpp = pkgs.callPackage ./digestpp { };
|
||||||
|
|
||||||
dragger = pkgs.callPackage ./dragger { };
|
dragger = pkgs.callPackage ./dragger { };
|
||||||
|
|
||||||
drone-rsync = pkgs.callPackage ./drone-rsync { };
|
drone-rsync = pkgs.callPackage ./drone-rsync { };
|
||||||
|
|
31
pkgs/digestpp/default.nix
Normal file
31
pkgs/digestpp/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "digestpp";
|
||||||
|
version = "0-unstable-2023-11-07";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kerukuro";
|
||||||
|
repo = "digestpp";
|
||||||
|
rev = "ebb699402c244e22c3aff61d2239bcb2e87b8ef8";
|
||||||
|
hash = "sha256-9X/P7DgZB6bSYjQWRli4iAXEFjhmACOVv3EYQrXuH5c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/include/digestpp
|
||||||
|
cp -r *.hpp algorithm/ detail/ $out/include/digestpp
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "C++11 header-only message digest library";
|
||||||
|
homepage = "https://github.com/kerukuro/digestpp";
|
||||||
|
license = licenses.unlicense;
|
||||||
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue