This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +45
-0
lines changed
Expand file tree Collapse file tree 4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1313 url = github:amaranth-lang/amaranth-boards ;
1414 flake = false ;
1515 } ;
16+ amaranth-stdio = {
17+ url = github:amaranth-lang/amaranth-stdio ;
18+ flake = false ;
19+ } ;
20+
1621 yosys = {
1722 url = github:YosysHQ/yosys ;
1823 flake = false ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ inputs @ {
8181 // optionalAttrs ( hdx-config . amaranth . enable ) {
8282 amaranth = callPackage ./pkgs/amaranth.nix { } ;
8383 amaranth-boards = callPackage ./pkgs/amaranth-boards.nix { } ;
84+ amaranth-stdio = callPackage ./pkgs/amaranth-stdio.nix { } ;
8485 }
8586 // optionalAttrs ( hdx-config . yosys . enable ) { yosys = callPackage ./pkgs/yosys.nix { } ; }
8687 // optionalAttrs ( hdx-config . nextpnr . enable ) ( { nextpnr = callPackage ./pkgs/nextpnr.nix { inherit nextpnrArchs ; } ; } // nextpnrArchs )
Original file line number Diff line number Diff line change 1+ {
2+ pkgs ,
3+ lib ,
4+ amaranth ,
5+ python ,
6+ hdx-inputs ,
7+ leaveDotGitWorkaround ,
8+ } : let
9+ pythonPkgs = python . pkgs ;
10+ in
11+ pythonPkgs . buildPythonPackage rec {
12+ pname = "amaranth-stdio" ;
13+ version = "0.1.0dev1+g${ lib . substring 0 7 src . rev } " ;
14+ src = hdx-inputs . amaranth-stdio ;
15+ postUnpack = leaveDotGitWorkaround ;
16+
17+ nativeBuildInputs = builtins . attrValues {
18+ inherit ( pkgs ) git ;
19+ inherit ( pythonPkgs ) setuptools-scm ;
20+ inherit amaranth ;
21+ } ;
22+ }
You can’t perform that action at this time.
0 commit comments