summary refs log tree commit diff
path: root/pkgs/development/misc
diff options
context:
space:
mode:
authorAaron Lindsay <aerialx@users.noreply.github.com>2019-03-30 17:33:53 -0700
committerAerialX <aerialx@users.noreply.github.com>2021-04-23 09:47:52 -0700
commit9aae499e79179060a6b6afbdaad0c118d2693503 (patch)
tree16f5dca613bfdeea887c40f1326a5fc7cab93c6b /pkgs/development/misc
parentda7c1383f4122c54b5c34d017beaff4faadb0313 (diff)
downloadnixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar.gz
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar.bz2
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar.lz
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar.xz
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.tar.zst
nixpkgs-9aae499e79179060a6b6afbdaad0c118d2693503.zip
mspds-bin: init at 3.15.1.1
Diffstat (limited to 'pkgs/development/misc')
-rw-r--r--pkgs/development/misc/msp430/mspds/binary.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/misc/msp430/mspds/binary.nix b/pkgs/development/misc/msp430/mspds/binary.nix
new file mode 100644
index 00000000000..690ed3e45e7
--- /dev/null
+++ b/pkgs/development/misc/msp430/mspds/binary.nix
@@ -0,0 +1,35 @@
+{ stdenv, lib, fetchurl, unzip, autoPatchelfHook }:
+
+with lib;
+
+let
+  archPostfix = optionalString (stdenv.is64bit && !stdenv.isDarwin) "_64";
+in stdenv.mkDerivation rec {
+  pname = "msp-debug-stack-bin";
+  version = "3.15.1.1";
+  src = fetchurl {
+    url = "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/3_15_1_001/export/MSP430_DLL_Developer_Package_Rev_3_15_1_1.zip";
+    sha256 = "1m1ssrwbhqvqwbp3m4hnjyxnz3f9d4acz9vl1av3fbnhvxr0d2hb";
+  };
+  sourceRoot = ".";
+
+  libname =
+    if stdenv.hostPlatform.isWindows then "MSP430${archPostfix}.dll"
+    else "libmsp430${archPostfix}${stdenv.hostPlatform.extensions.sharedLibrary}";
+
+  nativeBuildInputs = [ unzip autoPatchelfHook ];
+  buildInputs = [ stdenv.cc.cc ];
+
+  installPhase = ''
+    install -Dm0755 $libname $out/lib/''${libname//_64/}
+    install -Dm0644 -t $out/include Inc/*.h
+  '';
+
+  meta = {
+    description = "Unfree binary release of the TI MSP430 FET debug driver";
+    homepage = https://www.ti.com/tool/MSPDS;
+    license = licenses.unfree;
+    platforms = platforms.linux ++ platforms.darwin;
+    maintainers = with maintainers; [ aerialx ];
+  };
+}