Update jlink and use i686 package on x86_64

This commit is contained in:
Artemis Tosini 2020-12-18 04:15:10 +00:00
parent 3153480d23
commit 218158f34f
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 12 additions and 7 deletions

View file

@ -18,7 +18,7 @@
, libXrandr , libXrandr
}: }:
let let
jlinkVersion = "686a"; jlinkVersion = "690a";
architecture = { architecture = {
x86_64-linux = "x86_64"; x86_64-linux = "x86_64";
@ -28,10 +28,10 @@ let
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
sha256 = { sha256 = {
x86_64-linux = "1avwxlyr9aay1wrpjgqahwgmsjb5vp8h2pdxsr2gb3rj3mlx7r56"; x86_64-linux = "1cn51q1i6lapcz1xs28aa8gydvr3g25g78iwx11xgvp8bwaw0qws";
i686-linux = "13rldsryi56yx5172v0s0vlwdrxd96lfzj8i8v14sn64ziqh7wdb"; i686-linux = "107zdzgsshq80r2sxkfrfw5vs5bnyvf1g8payhd1x91r4cr9f01z";
armv7l-linux = "1j8p8kz3nx965xbh6d8wxmrm0xp9p7ryda07iak0d3bslq78ifvs"; armv7l-linux = "0wqf390kw0h3ysiw1i4dd10dmcll496673w41p685zln9xxypkmg";
aarch64-linux = "1ivwndpql05hiv08mbff75ysbg5fn18islsc1gcqz8a8hbx0jw44"; aarch64-linux = "1mw037245b44adkdcbg7xn9ng70chsfk0id8acc28hz43a92jb8n";
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
url = "https://www.segger.com/downloads/jlink/JLink_Linux_V${jlinkVersion}_${architecture}.tgz"; url = "https://www.segger.com/downloads/jlink/JLink_Linux_V${jlinkVersion}_${architecture}.tgz";

View file

@ -1,5 +1,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
call =
if (pkgs.targetPlatform.system == "x86_64-linux") then pkgs.pkgsi686Linux.callPackage
else pkgs.callPackage;
jlink = call ../externals/packages/jlink { };
in
{ {
services.udev.packages = [ services.udev.packages = [
(pkgs.callPackage ../externals/rules/adafruit.nix { }) (pkgs.callPackage ../externals/rules/adafruit.nix { })
@ -12,7 +17,7 @@
openocd openocd
picocom picocom
stlink stlink
(callPackage ../externals/packages/jlink { }) jlink
]; ];
users = { users = {