Compare commits

..

No commits in common. "eef00a167f524e91a66ebd51c52cb5f79553e75b" and "935e2a9255b2b2dd4aa4d9382573200ea4af0a30" have entirely different histories.

6 changed files with 36 additions and 51 deletions

View File

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

View File

@ -52,14 +52,6 @@ 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,6 +86,7 @@
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 = true; enable = false;
dpi = 144; dpi = 144;
libinput.enable = true; libinput.enable = true;
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;
@ -195,9 +195,6 @@
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,27 +1,27 @@
{ fdupes {
, buildFHSEnv fdupes,
, fetchzip buildFHSEnv,
, icoutils fetchzip,
, imagemagick icoutils,
, jdk17 imagemagick,
, lib jdk21,
, makeDesktopItem lib,
, stdenvNoCC makeDesktopItem,
}: makeWrapper,
stdenv,
let }: let
iconame = "STM32CubeMX"; iconame = "STM32CubeMX";
package = stdenvNoCC.mkDerivation rec { pkg = stdenv.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 = "sha256-B5Sf+zM7h9BiFqDYrLS0JdqZi3dGy6H9gAaJIN3izeM="; sha256 = "1qydwbfj1286h3ys3js6fy5rkni5njsarn502rid11rv6gxrz507";
stripRoot = false; stripRoot = false;
}; };
nativeBuildInputs = [ fdupes icoutils imagemagick ]; nativeBuildInputs = [fdupes icoutils imagemagick makeWrapper];
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "STM32CubeMX"; name = "STM32CubeMX";
exec = "stm32cubemx"; exec = "stm32cubemx";
@ -37,15 +37,15 @@ let
]; ];
}; };
buildCommand = '' installPhase = ''
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}
#!${stdenvNoCC.shell} #!${stdenv.shell}
${jdk17}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX ${jdk21}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX
EOF EOF
chmod +x $out/bin/${pname} chmod +x $out/bin/${pname}
@ -84,8 +84,8 @@ let
}; };
in in
buildFHSEnv { buildFHSEnv {
inherit (package) pname meta; inherit (pkg) pname meta;
runScript = "${package.outPath}/bin/stm32cubemx"; runScript = "${pkg.outPath}/bin/stm32cubemx";
targetPkgs = pkgs: targetPkgs = pkgs:
with pkgs; [ with pkgs; [
alsa-lib alsa-lib

View File

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