add patch
This commit is contained in:
commit
4033b516ee
5 changed files with 356 additions and 0 deletions
47
flake.nix
Normal file
47
flake.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = (import nixpkgs) {
|
||||
inherit system;
|
||||
};
|
||||
in
|
||||
rec {
|
||||
packages = {
|
||||
python = pkgs.python315.overrideAttrs (
|
||||
finalAttrs: previousAttrs: {
|
||||
patches = previousAttrs.patches ++ [
|
||||
./0001-add-to-parser.patch
|
||||
];
|
||||
nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [
|
||||
pkgs.python3
|
||||
];
|
||||
postConfigure = ''
|
||||
${previousAttrs.postConfigure or ""}
|
||||
make regen-pegen
|
||||
make regen-token
|
||||
'';
|
||||
}
|
||||
);
|
||||
};
|
||||
devShells.default =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
buildInputs = [ ];
|
||||
packages = [
|
||||
packages.python
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue