Merge pull request #231177 from jleightcap/jl/glasgow-fix

glasgow: update, fix failing build

authored by

Robert Scott and committed by
GitHub
43dcd990 5cc42320

+43 -10
+28
pkgs/tools/misc/glasgow/0001-Relax-Amaranth-git-dependency.patch
··· 1 + From 95d86c080a559d9c9f0498fb93d43d3fef377080 Mon Sep 17 00:00:00 2001 2 + From: Jack Leightcap <jack@leightcap.com> 3 + Date: Sat, 13 May 2023 17:28:54 -0400 4 + Subject: [PATCH] Relax Amaranth git dependency 5 + 6 + Signed-off-by: Jack Leightcap <jack@leightcap.com> 7 + --- 8 + software/pyproject.toml | 4 ++-- 9 + 1 file changed, 2 insertions(+), 2 deletions(-) 10 + 11 + diff --git a/software/pyproject.toml b/software/pyproject.toml 12 + index 6d1e2f1..6dfcc9e 100644 13 + --- a/software/pyproject.toml 14 + +++ b/software/pyproject.toml 15 + @@ -20,8 +20,8 @@ classifiers = [ 16 + ] 17 + 18 + dependencies = [ 19 + - "amaranth @ git+https://github.com/amaranth-lang/amaranth.git", 20 + - "fx2>=0.11", 21 + + "amaranth", 22 + + "fx2", 23 + "libusb1>=1.8.1", 24 + "aiohttp~=3.8", 25 + "pyvcd", 26 + -- 27 + 2.38.4 28 +
+15 -10
pkgs/tools/misc/glasgow/default.nix
··· 9 9 10 10 python3.pkgs.buildPythonApplication rec { 11 11 pname = "glasgow"; 12 - version = "unstable-2021-12-12"; 13 - # python software/setup.py --version 14 - realVersion = "0.1.dev1679+g${lib.substring 0 7 src.rev}"; 12 + version = "unstable-2023-04-15"; 13 + # python -m setuptools_scm 14 + realVersion = "0.1.dev2+g${lib.substring 0 7 src.rev}"; 15 + 16 + patches = [ ./0001-Relax-Amaranth-git-dependency.patch ]; 15 17 16 18 src = fetchFromGitHub { 17 19 owner = "GlasgowEmbedded"; 18 20 repo = "glasgow"; 19 - rev = "e640a778c446b7e9812727e73c560d12aeb41d7c"; 20 - sha256 = "EsQ9ZjalKDQ54JOonra4yPDI56cF5n86y/Rd798cZsU="; 21 + rev = "406e06fae5c85f6f773c9839747513874bc3ec77"; 22 + sha256 = "sha256-s4fWpKJj6n2+CIAsD2bjr5K8RhJz1H1sFnjiartNGf0="; 21 23 }; 22 24 23 - nativeBuildInputs = [ python3.pkgs.setuptools-scm sdcc ]; 25 + nativeBuildInputs = [ 26 + python3.pkgs.setuptools-scm 27 + sdcc 28 + ]; 24 29 25 30 propagatedBuildInputs = with python3.pkgs; [ 26 - setuptools 31 + aiohttp 27 32 amaranth 33 + bitarray 34 + crc 28 35 fx2 29 36 libusb1 30 - aiohttp 31 37 pyvcd 32 - bitarray 33 - crcmod 38 + setuptools 34 39 ]; 35 40 36 41 nativeCheckInputs = [ yosys icestorm nextpnr ];