13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-cN35VLbdQFA3KTZ8PxgpbsLGXqfFhw5eh3nEBRZqAm4=";
32 ] ++ lib.optional stdenv.hostPlatform.isDarwin IOKit;
35 "-DBLISP_BUILD_CLI=ON"
36 "-DBLISP_USE_SYSTEM_LIBRARIES=ON"
39 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration";
41 passthru.tests.version = testers.testVersion {
42 package = finalAttrs.finalPackage;
43 version = "v${finalAttrs.version}";
47 description = "In-System-Programming (ISP) tool & library for Bouffalo Labs RISC-V Microcontrollers and SoCs";
48 license = licenses.mit;
49 mainProgram = "blisp";
50 homepage = "https://github.com/pine64/blisp";
51 platforms = platforms.unix;
52 maintainers = [ maintainers.bdd ];