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-02-23 18:05:19 +01:00
|
|
|
version = "2019.02.21";
|
2018-08-02 10:18:47 +02:00
|
|
|
|
2019-01-08 23:56:16 +01:00
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "symbiflow";
|
|
|
|
repo = "prjtrellis";
|
2019-02-23 18:05:19 +01:00
|
|
|
rev = "90910577671cdd950e56df6cb29d848dadea9467";
|
|
|
|
sha256 = "0j5gnkqfkp8k01wmzsplg713dmw1zvg04hsy33bzbyxaqviybdip";
|
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
|
|
|
};
|
|
|
|
}
|