Skip to content

Commit

Permalink
added nix derivation file
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Oct 16, 2023
1 parent 6d916ef commit c058893
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ stdenv, fetchgit }:

stdenv.mkDerivation rec {
pname = "libcs50";
version = "dev";

src = fetchgit {
url = "https://github.com/cs50/libcs50";
};

installPhase = ''
mkdir -p $out/include
cp src/cs50.h $out/include
mkdir -p $out/lib
cp src/cs50.c $out/lib
'';

meta = with stdenv.lib; {
description = "CS50 Library for C";
homepage = https://github.com/cs50/libcs50;
maintainers = [ "CS50" ];
};
}

0 comments on commit c058893

Please sign in to comment.