blob: 4151d08b60f42a4a8affafb35f7e55efbfbd9f8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, nmigen
}:
buildPythonPackage rec {
pname = "nmigen-boards";
version = "unstable-2019-08-30";
realVersion = lib.substring 0 7 src.rev;
src = fetchFromGitHub {
owner = "m-labs";
repo = "nmigen-boards";
rev = "3b80b3a3749ae8f123ff258a25e81bd21412aed4";
sha256 = "01qynxip8bq23jfjc5wjd97vxfvhld2zb8sxphwf0zixrmmyaspi";
};
propagatedBuildInputs = [ nmigen ];
postPatch = ''
substituteInPlace setup.py \
--replace 'versioneer.get_version()' '"${realVersion}"'
'';
meta = with lib; {
description = "Board and connector definitions for nMigen";
homepage = https://github.com/m-labs/nmigen-boards;
license = licenses.bsd0;
maintainers = with maintainers; [ emily ];
};
}
|