Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 52 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, amaranth, pdm-backend, unstableGitUpdater,}:
buildPythonPackage rec { pname = "amaranth-boards"; version = "0-unstable-2025-03-29"; pyproject = true; # from `pdm show` realVersion = let tag = builtins.elemAt (lib.splitString "-" version) 0; rev = lib.substring 0 7 src.rev; in "${tag}1.dev1+g${rev}";
src = fetchFromGitHub { owner = "amaranth-lang"; repo = "amaranth-boards"; rev = "c26a72e59c786b38e0e989ae64c6c2560ca7c29c"; # these files change depending on git branch status postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes"; hash = "sha256-qzm3No5dGvpPpPCtLal+dv7Tz93FbZPnLTQZjO9jbac="; };
build-system = [ pdm-backend ]; dependencies = [ amaranth ];
preBuild = '' export PDM_BUILD_SCM_VERSION="${realVersion}" '';
# no tests doCheck = false;
passthru.updateScript = unstableGitUpdater { };
meta = with lib; { description = "Board definitions for Amaranth HDL"; homepage = "https://github.com/amaranth-lang/amaranth-boards"; license = licenses.bsd2; maintainers = with maintainers; [ thoughtpolice pbsds ]; };}