let v."1.10.0" = "sha256-deMxbLHnD1jDvQaAzhGiCF1vt11IpF6Ao2OF6zJuJ9A="; in { callPackage, jetperch, name ? "joulescope-driver", version ? "1.10.0", hash ? v.${version} or "", stdenv, #dependencies cmake, udev, }: stdenv.mkDerivation { pname = name; version = version; src = callPackage ../source.nix { repo = "joulescope_driver"; inherit version; inherit hash; }; postPatch = '' echo 'install(TARGETS jsdrv DESTINATION lib)' >>CMakeLists.txt ''; nativeBuildInputs = [ cmake ]; hardeningDisable = [ "format" ]; buildInputs = [ udev.dev ]; }