cc2538-bsl: init at unstable-2022-08-03 (#221394)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
c55aa4486f
commit
8fb5d438e2
36
pkgs/tools/misc/cc2538-bsl/default.nix
Normal file
36
pkgs/tools/misc/cc2538-bsl/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib, fetchFromGitHub, python3Packages }:
|
||||||
|
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
|
pname = "cc2538-bsl";
|
||||||
|
version = "unstable-2022-08-03";
|
||||||
|
|
||||||
|
src = fetchFromGitHub rec {
|
||||||
|
owner = "JelmerT";
|
||||||
|
repo = pname;
|
||||||
|
rev = "538ea0deb99530e28fdf1b454e9c9d79d85a3970";
|
||||||
|
hash = "sha256-fPY12kValxbJORi9xNyxzwkGpD9F9u3M1+aa9IlSiaE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ python3Packages.setuptools-scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
intelhex
|
||||||
|
pyserial
|
||||||
|
python-magic
|
||||||
|
];
|
||||||
|
|
||||||
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = "0.1.dev0+g${lib.substring 0 7 src.rev}";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Remove .py from binary
|
||||||
|
mv $out/bin/cc2538-bsl.py $out/bin/cc2538-bsl
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/JelmerT/cc2538-bsl";
|
||||||
|
description = "Flash TI SimpleLink chips (CC2538, CC13xx, CC26xx) over serial";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lorenz ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -6381,6 +6381,8 @@ with pkgs;
|
||||||
|
|
||||||
cask-server = libsForQt5.callPackage ../applications/misc/cask-server { };
|
cask-server = libsForQt5.callPackage ../applications/misc/cask-server { };
|
||||||
|
|
||||||
|
cc2538-bsl = callPackage ../tools/misc/cc2538-bsl { };
|
||||||
|
|
||||||
code-browser-qt = libsForQt5.callPackage ../applications/editors/code-browser { withQt = true; };
|
code-browser-qt = libsForQt5.callPackage ../applications/editors/code-browser { withQt = true; };
|
||||||
code-browser-gtk2 = callPackage ../applications/editors/code-browser { withGtk2 = true; };
|
code-browser-gtk2 = callPackage ../applications/editors/code-browser { withGtk2 = true; };
|
||||||
code-browser-gtk = callPackage ../applications/editors/code-browser { withGtk3 = true; };
|
code-browser-gtk = callPackage ../applications/editors/code-browser { withGtk3 = true; };
|
||||||
|
|
Loading…
Reference in a new issue