Compare commits

...

8 Commits

6 changed files with 51 additions and 36 deletions

View File

@ -25,6 +25,7 @@
git git
gnupg gnupg
gptfdisk gptfdisk
hcxdumptool
hdparm hdparm
htop-vim htop-vim
interception-tools interception-tools

View File

@ -52,6 +52,14 @@ with lib; {
}; };
}; };
tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
terminal = "screen-256color";
plugins = with pkgs.tmuxPlugins; [ sysstat net-speed gruvbox ];
};
mpv = { mpv = {
enable = true; enable = true;
config = { config = {

View File

@ -86,7 +86,6 @@
setopt c_bases setopt c_bases
setopt completeinword setopt completeinword
setopt completealiases setopt completealiases
setopt extendedglob
setopt notify setopt notify
# #

View File

@ -173,7 +173,7 @@
}; };
xserver = { xserver = {
enable = false; enable = true;
dpi = 144; dpi = 144;
libinput.enable = true; libinput.enable = true;
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;
@ -195,6 +195,9 @@
ATTR{idVendor}=="1443", MODE:="666" ATTR{idVendor}=="1443", MODE:="666"
ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE:="666" ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE:="666"
#Arduino UNO r4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
#ST-Link #ST-Link
''; '';

View File

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

View File

@ -1,15 +1,19 @@
{pkgs}: { fetchurl
pkgs.python3Packages.buildPythonPackage { , makeWrapper
, python3Packages
, qt6
}:
python3Packages.buildPythonPackage rec {
name = "zapzap"; name = "zapzap";
src = pkgs.fetchFromGitHub { version = "5.1-2";
owner = "zapzap-linux"; src = fetchurl {
repo = "zapzap"; url = "https://github.com/zapzap-linux/zapzap/archive/refs/tags/${version}.tar.gz";
rev = "5de4a4015128c164af3c964ecbe5b6358d98b521"; hash = "sha256-r5NhdXQ4Tl/wFrD1+sxFS10Z3lAcHcax5bi43Qa3ZI0=";
hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc=";
}; };
dontWrapQtApps = true; dontWrapQtApps = true;
propagatedBuildInputs = with pkgs.python3Packages; [pyqt6-webengine qt6.qtwayland qt6.qtsvg]; propagatedBuildInputs = with python3Packages; [ pyqt6-webengine qt6.qtwayland qt6.qtsvg ];
nativeBuildInputs = with pkgs; [qt6.wrapQtAppsHook makeWrapper]; nativeBuildInputs = [ qt6.wrapQtAppsHook makeWrapper ];
env = { env = {
HOME = "/tmp"; HOME = "/tmp";
}; };