Skip to content

Commit

Permalink
export xeger
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Dec 19, 2023
1 parent adb98a1 commit cbc2432
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
15 changes: 1 addition & 14 deletions cyaron.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@
, 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";
};
};
xeger = import ./xeger.nix { inherit system pkgs; };
in
pkgs.python3Packages.buildPythonPackage rec {
pname = "cyaron";
Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let
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; };
cyaron = callPackage ./cyaron.nix { inherit system; };
xeger = callPackage ./xeger.nix { inherit system; };
gcc = callPackage ./gccWithCache.nix { inherit system; };
judge = callPackage ./judge.nix { inherit system; };
};
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
{ pkgs = nixpkgs.legacyPackages.${system}; system = system; };
packages.cyaron = (import ./cyaron.nix)
{ pkgs = nixpkgs.legacyPackages.${system}; system = system; };
packages.xeger = (import ./xeger.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 @@ -8,6 +8,7 @@ let
gcc = import ./gccWithCache.nix { inherit pkgs; inherit system; };
php = pkgs.php.withExtensions ({ enabled, all }: [ ]);
cyaron = import ./cyaron.nix { inherit pkgs; inherit system; };
xeger = import ./xeger.nix { inherit pkgs; inherit system; };
in
pkgs.buildEnv {
name = "judge${if minimal then "-minimal" else ""}";
Expand Down Expand Up @@ -51,6 +52,7 @@ pkgs.buildEnv {
numpy
tkinter
pillow
xeger
cyaron
])) else [ ]) ++ (if system == "x86_64-linux" then [
pkgs.julia-bin
Expand Down
17 changes: 17 additions & 0 deletions xeger.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ system ? builtins.currentSystem
, pkgs ? import <nixpkgs> { system = system; }
}:
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";
};
}

0 comments on commit cbc2432

Please sign in to comment.