Skip to content

Commit

Permalink
add cyaron
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Dec 18, 2023
1 parent 0b08c44 commit adb98a1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 45 deletions.
33 changes: 33 additions & 0 deletions cyaron.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ system ? builtins.currentSystem
, pkgs ? import <nixpkgs> { system = system; }
}:
let
xeger = pkgs.python3Packages.buildPythonPackage rec {
pname = "xeger";
version = "0.4.0";
format = "wheel";
propagatedBuildInputs = with pkgs.python3Packages; [
setuptools
];
src = pkgs.fetchPypi {
inherit pname version format;
sha256 = "sha256-oPVE+vRaxWopr05ii9HmmWM08JBFjXimFYFJDfGq0lI=";
python = "py3";
dist = "py3";
};
};
in
pkgs.python3Packages.buildPythonPackage rec {
pname = "cyaron";
version = "0.5.0";
propagatedBuildInputs = with pkgs.python3Packages; [
setuptools
colorful
xeger
];
doCheck = false;
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-B0kLUoP7YstDckfAdVmuB4rUmw+g9l/6It6boTuSsII=";
};
}
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let
mongodb6-cn = callPackage ./mongodb.nix { version = "6.0.12"; mirror = tuna; inherit system; };
mongodb5-cn = callPackage ./mongodb.nix { version = "5.0.10"; mirror = tuna; inherit system; };
mongodb4-cn = callPackage ./mongodb.nix { version = "4.4.16"; mirror = tuna; inherit system; };
sandbox = callPackage ./sandbox.nix { inherit system; };
cyaron = callPackage ./cyaron.nix { inherit system; };
gcc = callPackage ./gccWithCache.nix { inherit system; };
judge = callPackage ./judge.nix { inherit system; };
};
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11;
inputs.flake-utils.url = github:numtide/flake-utils;

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
{
packages.judge = (import ./judge.nix)
{ pkgs = nixpkgs.legacyPackages.${system}; system = system; };
packages.cyaron = (import ./cyaron.nix)
{ pkgs = nixpkgs.legacyPackages.${system}; system = system; };
packages.mongodb = (import ./mongodb.nix)
{ pkgs = nixpkgs.legacyPackages.${system}; system = system; };
}
Expand Down
2 changes: 2 additions & 0 deletions judge.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
let
gcc = import ./gccWithCache.nix { inherit pkgs; inherit system; };
php = pkgs.php.withExtensions ({ enabled, all }: [ ]);
cyaron = import ./cyaron.nix { inherit pkgs; inherit system; };
in
pkgs.buildEnv {
name = "judge${if minimal then "-minimal" else ""}";
Expand Down Expand Up @@ -50,6 +51,7 @@ pkgs.buildEnv {
numpy
tkinter
pillow
cyaron
])) else [ ]) ++ (if system == "x86_64-linux" then [
pkgs.julia-bin
] else [ ]);
Expand Down
39 changes: 0 additions & 39 deletions sandbox.nix

This file was deleted.

0 comments on commit adb98a1

Please sign in to comment.