diff options
author | Câju Mihai-Drosi <cajum.bugs@yandex.com> | 2020-12-02 16:03:50 +0200 |
---|---|---|
committer | Mihai-Drosi Câju <cajum.bugs@yandex.com> | 2021-01-10 09:32:26 +0200 |
commit | 7d9c73682480aec84c97abda002ac6e830b5deea (patch) | |
tree | 89c5aa8df871019cbb8a320a5abdd7f88b49cdf3 /pkgs/data/misc | |
parent | d81e4d9f66e0d1a1a6deed4e0a77a20425b856b9 (diff) |
prjxray-db: init at 0.0-0232-g303a61d
Diffstat (limited to 'pkgs/data/misc')
-rw-r--r-- | pkgs/data/misc/prjxray-db/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/data/misc/prjxray-db/default.nix b/pkgs/data/misc/prjxray-db/default.nix new file mode 100644 index 000000000000..d498fdb1cc8b --- /dev/null +++ b/pkgs/data/misc/prjxray-db/default.nix @@ -0,0 +1,43 @@ +{ stdenv +, fetchFromGitHub +}: + +stdenv.mkDerivation rec { + pname = "prjxray-db"; + version = "0.0-0232-g303a61d"; + + src = fetchFromGitHub { + owner = "SymbiFlow"; + repo = "prjxray-db"; + rev = "303a61d8bc552f7a533b91b17448c59e908aa391"; + sha256 = "0r75xig16dbgh3nfygggir0a160x52y766h7hd9xcib9m88jixb2"; + }; + + enableParallelBuilding = true; + + installPhase = '' + runHook preInstall + + DBDIR="$out/share/symbiflow/prjxray-db/" + DB_CONFIG="$out/bin/prjxray-config" + + mkdir -p $DBDIR $out/bin + + for device in artix7 kintex7 zynq7; do + cp -r $src/$device $DBDIR + done + + echo -e "#!/bin/sh\n\necho $DBDIR" > $DB_CONFIG + chmod +x $DB_CONFIG + + runHook postInstall + ''; + + meta = with stdenv.lib; { + description = "Project X-Ray - Xilinx Series 7 Bitstream Documentation"; + homepage = "https://github.com/SymbiFlow/prjxray-db"; + license = licenses.cc0; + maintainers = with maintainers; [ mcaju ]; + platforms = platforms.all; + }; +} |