Merge pull request #234804 from t-spr/master

libcs50: init at 11.0.2
This commit is contained in:
Pol Dellaiera 2023-06-05 22:45:53 +02:00 committed by GitHub
commit d929ec331e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation (finalAttrs: {
pname = "libcs50";
version = "11.0.2";
src = fetchFromGitHub {
owner = "cs50";
repo = "libcs50";
rev = "v${finalAttrs.version}";
hash = "sha256-A4CEU5wfwykVTDIsKZnQ8co+6RwBGYGZEZxRFzQTKBI=";
};
installPhase = ''
runHook preInstall
mkdir $out
cp -R build/lib $out/lib
cp -R build/include $out/include
ln -sf $out/lib/libcs50.so.11.0.2 $out/lib/libcs50.so.11
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/cs50/libcs50";
description = "CS50 Library for C";
license = licenses.gpl3Only;
};
})

View File

@ -21695,6 +21695,8 @@ with pkgs;
libcrossguid = callPackage ../development/libraries/libcrossguid { };
libcs50 = callPackage ../development/libraries/libcs50 { };
libuchardet = callPackage ../development/libraries/libuchardet { };
libchop = callPackage ../development/libraries/libchop { };