Skip to content

Instantly share code, notes, and snippets.

@spinus
Forked from infinisil/default.nix
Created June 30, 2017 00:46
Show Gist options
  • Save spinus/6a46c06487fc6d1d32feb5fdd784990a to your computer and use it in GitHub Desktop.
Save spinus/6a46c06487fc6d1d32feb5fdd784990a to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "test";
src = fetchFromGitHub {
owner = "cs50";
repo = "libcs50";
rev = "v8.0.3";
sha256 = "08fj1ckbv6q8fsyv3x17y73sfnk0x4b3dlfl35637srn36zfk28n";
};
buildPhase = ''
make build
make hack
'';
installPhase = ''
make install # is the default I think
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment