uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
77
pkgs/development/python-modules/glasgow/default.nix
Normal file
77
pkgs/development/python-modules/glasgow/default.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, pythonOlder
|
||||
, sdcc
|
||||
, amaranth
|
||||
, fx2
|
||||
, libusb1
|
||||
, aiohttp
|
||||
, pyvcd
|
||||
, bitarray
|
||||
, crcmod
|
||||
, yosys
|
||||
, icestorm
|
||||
, nextpnr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "glasgow";
|
||||
version = "unstable-2021-12-12";
|
||||
disabled = pythonOlder "3.7";
|
||||
# python software/setup.py --version
|
||||
realVersion = "0.1.dev1679+g${lib.substring 0 7 src.rev}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GlasgowEmbedded";
|
||||
repo = "glasgow";
|
||||
rev = "e640a778c446b7e9812727e73c560d12aeb41d7c";
|
||||
sha256 = "EsQ9ZjalKDQ54JOonra4yPDI56cF5n86y/Rd798cZsU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm sdcc ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
amaranth
|
||||
fx2
|
||||
libusb1
|
||||
aiohttp
|
||||
pyvcd
|
||||
bitarray
|
||||
crcmod
|
||||
];
|
||||
|
||||
checkInputs = [ yosys icestorm nextpnr ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preBuild = ''
|
||||
make -C firmware LIBFX2=${fx2}/share/libfx2
|
||||
cp firmware/glasgow.ihex software/glasgow
|
||||
cd software
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
||||
'';
|
||||
|
||||
# installCheck tries to build_ext again
|
||||
doInstallCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
python -W ignore::DeprecationWarning test.py
|
||||
'';
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--set" "YOSYS" "${yosys}/bin/yosys"
|
||||
"--set" "ICEPACK" "${icestorm}/bin/icepack"
|
||||
"--set" "NEXTPNR_ICE40" "${nextpnr}/bin/nextpnr-ice40"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Software for Glasgow, a digital interface multitool";
|
||||
homepage = "https://github.com/GlasgowEmbedded/Glasgow";
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ emily thoughtpolice ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue