init at 11.0.2

This commit is contained in:
t-spr 2023-05-29 10:02:06 -04:00
parent 041094ad2f
commit de988db9c9
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libcs50";
version = "11.0.2";
src = fetchFromGitHub {
owner = "cs50";
repo = "libcs50";
rev = "v${version}";
hash = "sha256-A4CEU5wfwykVTDIsKZnQ8co+6RwBGYGZEZxRFzQTKBI=";
};
installPhase = ''
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
'';
meta = with lib; {
homepage = "https://github.com/cs50/libcs50";
description = "CS50 Library for C";
license = licenses.gpl3Only;
};
}

View File

@ -40710,4 +40710,6 @@ with pkgs;
isolate = callPackage ../tools/security/isolate { };
reindeer = callPackage ../development/tools/reindeer { };
libcs50 = callPackage ../development/libraries/libcs50 { };
}