mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
init at 11.0.2
This commit is contained in:
parent
041094ad2f
commit
de988db9c9
26
pkgs/development/libraries/libcs50/default.nix
Normal file
26
pkgs/development/libraries/libcs50/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -40710,4 +40710,6 @@ with pkgs;
|
||||
isolate = callPackage ../tools/security/isolate { };
|
||||
|
||||
reindeer = callPackage ../development/tools/reindeer { };
|
||||
|
||||
libcs50 = callPackage ../development/libraries/libcs50 { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user