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