12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-cN35VLbdQFA3KTZ8PxgpbsLGXqfFhw5eh3nEBRZqAm4=";
23 nativeBuildInputs = [ cmake pkg-config ];
28 ] ++ lib.optional stdenv.isDarwin IOKit;
31 "-DBLISP_BUILD_CLI=ON"
32 "-DBLISP_USE_SYSTEM_LIBRARIES=ON"
35 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=implicit-function-declaration";
37 passthru.tests.version = testers.testVersion {
38 package = finalAttrs.finalPackage;
39 version = "v${finalAttrs.version}";
43 description = "An In-System-Programming (ISP) tool & library for Bouffalo Labs RISC-V Microcontrollers and SoCs";
44 license = licenses.mit;
45 mainProgram = "blisp";
46 homepage = "https://github.com/pine64/blisp";
47 platforms = platforms.unix;
48 maintainers = [ maintainers.bdd ];