2020-02-08 17:54:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nmigen
|
|
|
|
, setuptools
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nmigen-soc";
|
2021-02-10 04:48:29 +00:00
|
|
|
version = "unstable-2021-02-09";
|
2020-02-08 17:54:05 +00:00
|
|
|
# python setup.py --version
|
2021-02-10 04:48:29 +00:00
|
|
|
realVersion = "0.1.dev43+g${lib.substring 0 7 src.rev}";
|
2020-02-08 17:54:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nmigen";
|
|
|
|
repo = "nmigen-soc";
|
2021-02-10 04:48:29 +00:00
|
|
|
rev = "ecfad4d9abacf903a525f0a252c38844eda0d2dd";
|
|
|
|
sha256 = "0afmnfs1ms7p1r4c1nc0sfvlcq36zjwaim7775v5i2vajcn3020c";
|
2020-02-08 17:54:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ setuptools nmigen ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "System on Chip toolkit for nMigen";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nmigen/nmigen-soc";
|
2020-02-08 17:54:05 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ emily ];
|
|
|
|
};
|
|
|
|
}
|