packages/stm32cubemx: update to reflect upstream
This commit is contained in:
parent
0a1cf9b0ca
commit
d9caa08da5
@ -1,32 +1,32 @@
|
||||
{
|
||||
fdupes,
|
||||
buildFHSEnv,
|
||||
fetchzip,
|
||||
icoutils,
|
||||
imagemagick,
|
||||
jdk21,
|
||||
lib,
|
||||
makeDesktopItem,
|
||||
makeWrapper,
|
||||
stdenv,
|
||||
}: let
|
||||
{ fdupes
|
||||
, buildFHSEnv
|
||||
, fetchzip
|
||||
, icoutils
|
||||
, imagemagick
|
||||
, jdk17
|
||||
, lib
|
||||
, makeDesktopItem
|
||||
, stdenvNoCC
|
||||
}:
|
||||
|
||||
let
|
||||
iconame = "STM32CubeMX";
|
||||
pkg = stdenv.mkDerivation rec {
|
||||
package = stdenvNoCC.mkDerivation rec {
|
||||
pname = "stm32cubemx";
|
||||
version = "6.10.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${builtins.replaceStrings ["."] [""] version}-lin.zip";
|
||||
sha256 = "1qydwbfj1286h3ys3js6fy5rkni5njsarn502rid11rv6gxrz507";
|
||||
sha256 = "sha256-B5Sf+zM7h9BiFqDYrLS0JdqZi3dGy6H9gAaJIN3izeM=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [fdupes icoutils imagemagick makeWrapper];
|
||||
nativeBuildInputs = [ fdupes icoutils imagemagick ];
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "STM32CubeMX";
|
||||
exec = "stm32cubemx";
|
||||
desktopName = "STM32CubeMX";
|
||||
categories = ["Development"];
|
||||
categories = [ "Development" ];
|
||||
icon = "stm32cubemx";
|
||||
comment = meta.description;
|
||||
terminal = false;
|
||||
@ -37,15 +37,15 @@
|
||||
];
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
buildCommand = ''
|
||||
mkdir -p $out/{bin,opt/STM32CubeMX,share/applications}
|
||||
|
||||
cp -r $src/MX/. $out/opt/STM32CubeMX/
|
||||
chmod +rx $out/opt/STM32CubeMX/STM32CubeMX
|
||||
|
||||
cat << EOF > $out/bin/${pname}
|
||||
#!${stdenv.shell}
|
||||
${jdk21}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX
|
||||
#!${stdenvNoCC.shell}
|
||||
${jdk17}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX
|
||||
EOF
|
||||
chmod +x $out/bin/${pname}
|
||||
|
||||
@ -76,16 +76,16 @@
|
||||
step-by-step process.
|
||||
'';
|
||||
homepage = "https://www.st.com/en/development-tools/stm32cubemx.html";
|
||||
sourceProvenance = with sourceTypes; [binaryBytecode];
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [angaz wucke13];
|
||||
maintainers = with maintainers; [ angaz wucke13 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
in
|
||||
in
|
||||
buildFHSEnv {
|
||||
inherit (pkg) pname meta;
|
||||
runScript = "${pkg.outPath}/bin/stm32cubemx";
|
||||
inherit (package) pname meta;
|
||||
runScript = "${package.outPath}/bin/stm32cubemx";
|
||||
targetPkgs = pkgs:
|
||||
with pkgs; [
|
||||
alsa-lib
|
||||
@ -112,4 +112,4 @@ in
|
||||
xorg.libXfixes
|
||||
xorg.libXrandr
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user