nixpkgs/pkgs/by-name/cy/cynthion/package.nix
2024-11-18 12:44:14 +01:00

27 lines
538 B
Nix

{
python3,
fetchFromGitHub,
}:
let
python = python3.override {
self = python3;
packageOverrides = _: super: {
amaranth = super.amaranth.overridePythonAttrs rec {
version = "0.4.1";
src = fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth";
rev = "refs/tags/v${version}";
sha256 = "sha256-VMgycvxkphdpWIib7aZwh588En145RgYlG2Zfi6nnDo=";
};
postPatch = null;
};
};
};
in
python.pkgs.toPythonApplication python.pkgs.cynthion