depot/third_party/nixpkgs/pkgs/development/libraries/libcs50/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

28 lines
658 B
Nix

{ 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;
};
})