blob: 007063309271c2d3ec5b727fd7e41617f84a0061 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
fetchFromGitHub,
rustPlatform,
python3,
}:
rustPlatform.buildRustPackage rec {
pname = "prjoxide";
version = "0.1-unstable-2026-07-19";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "gatecat";
repo = "prjoxide";
rev = "ea3fe12094dec200afcecdf9ed3306f82e6e3eb2";
hash = "sha256-qnfjiN+gd2zc/7uuySc8KlLnp/vmTbiF0s379GH7g4M=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = "rm -rf $out/.git";
};
sourceRoot = "${src.name}/libprjoxide";
cargoPatches = [ ./fix-cargo-lock.patch ];
cargoHash = "sha256-+KCoH1ibHAGdD66r/kbLK1HCkKot1VmxNnbcpR8QRbA=";
# The cargo build fails during the check phase due to not
# Being able to find python symbols. This fixes it
env.RUSTFLAGS = "-l python${python3.pythonVersion}";
nativeBuildInputs = [ python3 ];
buildInputs = [ python3 ];
doCheck = true;
strictDeps = true;
meta = {
description = "Documentation and tools for Lattice 28nm FPGA parts";
longDescription = ''
Project Oxide aims at creating a framework to place
parse and fuzz bitstreams for Lattice 28nm FPGA parts.
'';
homepage = "https://github.com/gatecat/prjoxide";
license = lib.licenses.isc;
mainProgram = "prjoxide";
maintainers = with lib.maintainers; [ gitRaiku ];
platforms = lib.platforms.all;
};
}
|