2019-01-08 23:56:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, python3, boost
|
|
|
|
, cmake
|
|
|
|
}:
|
2018-08-02 10:18:47 +02:00
|
|
|
|
|
|
|
let
|
2019-01-08 23:56:16 +01:00
|
|
|
boostWithPython3 = boost.override { python = python3; enablePython = true; };
|
2018-08-02 10:18:47 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trellis-${version}";
|
2019-04-10 00:11:00 +02:00
|
|
|
version = "2019.04.02";
|
2018-08-02 10:18:47 +02:00
|
|
|
|
2019-01-08 23:56:16 +01:00
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "symbiflow";
|
|
|
|
repo = "prjtrellis";
|
2019-04-10 00:11:00 +02:00
|
|
|
rev = "7848ab8db85194cb822bc27af5b50a6fe2db55c6";
|
|
|
|
sha256 = "1c9085idsnpw279ddshh58yv920vpcnymzznzj2n5z5vcnkbrr3v";
|
2019-01-08 23:56:16 +01:00
|
|
|
name = "trellis";
|
|
|
|
})
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "symbiflow";
|
|
|
|
repo = "prjtrellis-db";
|
2019-02-23 18:05:19 +01:00
|
|
|
rev = "d0b219af41ae3da6150645fbc5cc5613b530603f";
|
|
|
|
sha256 = "1mnzvrqrcbfypvbagwyf6arv3kmj6q7n27gcmyk6ap2xnavkx4bq";
|
2019-01-08 23:56:16 +01:00
|
|
|
name = "database";
|
|
|
|
})
|
2018-08-02 10:18:47 +02:00
|
|
|
];
|
2019-01-08 23:56:16 +01:00
|
|
|
sourceRoot = "trellis";
|
2018-08-02 10:18:47 +02:00
|
|
|
|
2019-01-08 23:56:16 +01:00
|
|
|
buildInputs = [ boostWithPython3 ];
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2018-08-02 10:18:47 +02:00
|
|
|
|
2019-01-08 23:56:16 +01:00
|
|
|
preConfigure = with builtins; ''
|
|
|
|
rmdir database && ln -sfv ${elemAt srcs 1} ./database
|
2018-08-02 10:18:47 +02:00
|
|
|
|
|
|
|
source environment.sh
|
|
|
|
cd libtrellis
|
|
|
|
'';
|
|
|
|
|
2019-01-08 23:56:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Documentation and bitstream tools for Lattice ECP5 FPGAs";
|
2018-08-02 10:18:47 +02:00
|
|
|
longDescription = ''
|
|
|
|
Project Trellis documents the Lattice ECP5 architecture
|
|
|
|
to enable development of open-source tools. Its goal is
|
|
|
|
to provide sufficient information to develop a free and
|
|
|
|
open Verilog to bitstream toolchain for these devices.
|
|
|
|
'';
|
2019-01-08 23:56:16 +01:00
|
|
|
homepage = https://github.com/symbiflow/prjtrellis;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = with maintainers; [ q3k thoughtpolice ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-08-02 10:18:47 +02:00
|
|
|
};
|
|
|
|
}
|