Created
January 10, 2025 05:12
-
-
Save fzakaria/0c53aabe9c9df5e6c8232a6a329c3a42 to your computer and use it in GitHub Desktop.
CSE130 nix-shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? | |
import (fetchTarball { | |
url = "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz"; | |
sha256 = "sha256:01f1ym9f0dr66yg6d2fzapscrd0dh125zpi04wp0b2l32v57nxq8"; | |
}) {}, | |
}: let | |
pypkgs = pkgs.python3Packages; | |
autograder = pypkgs.buildPythonPackage rec { | |
pname = "autograder-py"; | |
version = "0.6.2"; | |
pyproject = true; | |
src = pypkgs.fetchPypi { | |
pname = "autograder_py"; | |
inherit version; | |
hash = "sha256-jHMbOsrUxoxyj9NIP/4LI2uoMltKhNfWhhl6d6WDN6A="; | |
}; | |
build-system = with pypkgs; [ | |
setuptools | |
]; | |
dependencies = with pypkgs; [ | |
twine | |
pkgs.vermin | |
flake8 | |
gitpython | |
platformdirs | |
argon2-cffi | |
]; | |
}; | |
in | |
pkgs.mkShell { | |
# Define dependencies | |
buildInputs = [ | |
pkgs.gcc | |
pkgs.valgrind | |
pkgs.clang-tools | |
autograder | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment