git.iko.soy/typeable/nixpkgs
on master help sign in
mspds-bin: init at 3.15.1.1
commit9aae499e79179060a6b6afbdaad0c118d2693503 authorAaron Lindsay <aerialx@users.noreply.github.com> dateSat 30 Mar 2019, 17:33 (8 years ago) parentda7c138
2 files changed+36
pkgs/development/misc/msp430/mspds/binary.nix+35 pkgs/top-level/all-packages.nix+1
pkgs/development/misc/msp430/mspds/binary.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, lib, fetchurl, unzip, autoPatchelfHook }:
2+
3+with lib;
4+
5+let
6+ archPostfix = optionalString (stdenv.is64bit && !stdenv.isDarwin) "_64";
7+in stdenv.mkDerivation rec {
8+ pname = "msp-debug-stack-bin";
9+ version = "3.15.1.1";
10+ src = fetchurl {
11+ 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";
12+ sha256 = "1m1ssrwbhqvqwbp3m4hnjyxnz3f9d4acz9vl1av3fbnhvxr0d2hb";
13+ };
14+ sourceRoot = ".";
15+
16+ libname =
17+ if stdenv.hostPlatform.isWindows then "MSP430${archPostfix}.dll"
18+ else "libmsp430${archPostfix}${stdenv.hostPlatform.extensions.sharedLibrary}";
19+
20+ nativeBuildInputs = [ unzip autoPatchelfHook ];
21+ buildInputs = [ stdenv.cc.cc ];
22+
23+ installPhase = ''
24+ install -Dm0755 $libname $out/lib/''${libname//_64/}
25+ install -Dm0644 -t $out/include Inc/*.h
26+ '';
27+
28+ meta = {
29+ description = "Unfree binary release of the TI MSP430 FET debug driver";
30+ homepage = https://www.ti.com/tool/MSPDS;
31+ license = licenses.unfree;
32+ platforms = platforms.linux ++ platforms.darwin;
33+ maintainers = with maintainers; [ aerialx ];
34+ };
35+}
pkgs/top-level/all-packages.nix+1
@@ -12207,6 +12207,7 @@ in
1220712207 };
1220812208
1220912209 mspds = callPackage ../development/misc/msp430/mspds { };
12210+ mspds-bin = callPackage ../development/misc/msp430/mspds/binary.nix { };
1221012211
1221112212 mspdebug = callPackage ../development/misc/msp430/mspdebug.nix { };
1221212213