Compare commits
No commits in common. "33d829736d8e017117e20ae7df29dffff91cfed3" and "7b9ef8fde400063b8b144161a0abe06b13e3968e" have entirely different histories.
33d829736d
...
7b9ef8fde4
12 changed files with 9 additions and 197 deletions
|
@ -101,7 +101,6 @@
|
||||||
(import ./packages) {
|
(import ./packages) {
|
||||||
inherit flake-utils nixpkgs;
|
inherit flake-utils nixpkgs;
|
||||||
deprekages = self.outputs.packages;
|
deprekages = self.outputs.packages;
|
||||||
esp-dev = esp-dev.outputs.packages;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -336,6 +335,7 @@
|
||||||
modules = linuxOfflineGuiModules [
|
modules = linuxOfflineGuiModules [
|
||||||
./nixos/hosts/komashi
|
./nixos/hosts/komashi
|
||||||
|
|
||||||
|
./nixos/configs/vmware.nix
|
||||||
./nixos/configs/cellular.nix
|
./nixos/configs/cellular.nix
|
||||||
./nixos/configs/nfc-kernel.nix
|
./nixos/configs/nfc-kernel.nix
|
||||||
./nixos/configs/power-saving.nix
|
./nixos/configs/power-saving.nix
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
packages = [
|
packages = [
|
||||||
deprekages.ykush-udev-rules
|
deprekages.ykush-udev-rules
|
||||||
deprekages.hantek-udev-rules
|
deprekages.hantek-udev-rules
|
||||||
deprekages.dsview
|
deprekages.dreamsource-udev-rules
|
||||||
deprekages.humanfx
|
deprekages.humanfx
|
||||||
pkgs.numworks-udev-rules
|
pkgs.numworks-udev-rules
|
||||||
pkgs.android-udev-rules
|
pkgs.android-udev-rules
|
||||||
|
|
|
@ -87,7 +87,6 @@ with pkgs;
|
||||||
hexyl
|
hexyl
|
||||||
htop
|
htop
|
||||||
imagemagick
|
imagemagick
|
||||||
inetutils
|
|
||||||
jq
|
jq
|
||||||
jre
|
jre
|
||||||
jmtpfs
|
jmtpfs
|
||||||
|
@ -119,7 +118,6 @@ with pkgs;
|
||||||
unzip
|
unzip
|
||||||
unar
|
unar
|
||||||
unrar
|
unrar
|
||||||
deprekages.vja
|
|
||||||
wget
|
wget
|
||||||
zstd
|
zstd
|
||||||
zip
|
zip
|
||||||
|
@ -154,7 +152,7 @@ with pkgs;
|
||||||
))
|
))
|
||||||
|
|
||||||
# Reversing.
|
# Reversing.
|
||||||
binwalk
|
#binwalk
|
||||||
|
|
||||||
# Development.
|
# Development.
|
||||||
colmena
|
colmena
|
||||||
|
|
|
@ -9,19 +9,5 @@
|
||||||
appId = "org.kde.kitinerary-workbench";
|
appId = "org.kde.kitinerary-workbench";
|
||||||
origin = "kitinerary";
|
origin = "kitinerary";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
appId = "com.github.vikdevelop.photopea_app";
|
|
||||||
origin = "flathub";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.flatpak.overrides = {
|
|
||||||
|
|
||||||
# Try to use Wayland whenever possible.
|
|
||||||
global = {
|
|
||||||
Context.sockets = [ "wayland" ];
|
|
||||||
Environment.ELECTRON_ELECTRON_OZONE_PLATFORM_HINT = "wayland";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,9 +71,6 @@ with pkgs;
|
||||||
bytecode-viewer
|
bytecode-viewer
|
||||||
# Poking our phone.
|
# Poking our phone.
|
||||||
|
|
||||||
# Hardware hacking
|
|
||||||
deprekages.dsview
|
|
||||||
|
|
||||||
# Backup
|
# Backup
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ with pkgs;
|
||||||
python3
|
python3
|
||||||
cfr
|
cfr
|
||||||
procyon
|
procyon
|
||||||
esp-dev.esp-idf-full
|
|
||||||
|
|
||||||
# Build systems.
|
# Build systems.
|
||||||
cmake
|
cmake
|
||||||
|
@ -82,6 +81,7 @@ with pkgs;
|
||||||
if pkgs.stdenv.isDarwin then
|
if pkgs.stdenv.isDarwin then
|
||||||
[
|
[
|
||||||
|
|
||||||
|
esp-dev.esp-idf-full
|
||||||
|
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
# vim: et:ts=2:sw=2:
|
# vim: et:ts=2:sw=2:
|
||||||
#
|
#
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
stdenv,
|
stdenv,
|
||||||
autoPatchelfHook,
|
autoPatchelfHook,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
@ -18,9 +17,7 @@
|
||||||
xkeyboard_config,
|
xkeyboard_config,
|
||||||
libxkbcommon,
|
libxkbcommon,
|
||||||
wayland,
|
wayland,
|
||||||
python3,
|
qt6,
|
||||||
svd2py,
|
|
||||||
qt6
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
desktopFile = writeText "binary-ninja.desktop" ''
|
desktopFile = writeText "binary-ninja.desktop" ''
|
||||||
|
@ -32,17 +29,6 @@ let
|
||||||
Categories=Development;
|
Categories=Development;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Additional packages to put in Binja's python envrioment.
|
|
||||||
additional-python-packages = pypkgs: with pypkgs; [
|
|
||||||
click
|
|
||||||
colorama
|
|
||||||
pyyaml
|
|
||||||
svd2py
|
|
||||||
];
|
|
||||||
|
|
||||||
# Python specialized for our environment.
|
|
||||||
binja-python = python3.withPackages additional-python-packages;
|
|
||||||
|
|
||||||
binary-ninja = stdenv.mkDerivation {
|
binary-ninja = stdenv.mkDerivation {
|
||||||
pname = "binary-ninja";
|
pname = "binary-ninja";
|
||||||
version = "4.0.5902";
|
version = "4.0.5902";
|
||||||
|
@ -67,12 +53,9 @@ let
|
||||||
xorg.xcbutilrenderutil
|
xorg.xcbutilrenderutil
|
||||||
qt6.qtdeclarative
|
qt6.qtdeclarative
|
||||||
wayland
|
wayland
|
||||||
binja-python
|
|
||||||
dbus
|
dbus
|
||||||
];
|
];
|
||||||
|
|
||||||
propogatedBuildInputs = (additional-python-packages python3.pkgs);
|
|
||||||
|
|
||||||
# Use our local zip directly.
|
# Use our local zip directly.
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
src = if stdenv.isAarch64 then
|
src = if stdenv.isAarch64 then
|
||||||
|
@ -97,9 +80,7 @@ let
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper $out/opt/binaryninja \
|
makeWrapper $out/opt/binaryninja \
|
||||||
$out/bin/binaryninja \
|
$out/bin/binaryninja \
|
||||||
--set "PYTHONHOME" "${binja-python}" \
|
--prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
|
||||||
--prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb" \
|
|
||||||
--prefix "LD_LIBRARY_PATH" ":" "${lib.makeLibraryPath binary-ninja.buildInputs}"
|
|
||||||
ln -s $out/bin/binaryninja $out/bin/binary-ninja
|
ln -s $out/bin/binaryninja $out/bin/binary-ninja
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
flake-utils,
|
flake-utils,
|
||||||
deprekages,
|
deprekages,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
esp-dev
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
flake-utils.lib.eachDefaultSystem (
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
@ -31,7 +30,6 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
ffts = callPackage ./scopehal-apps/ffts.nix { };
|
ffts = callPackage ./scopehal-apps/ffts.nix { };
|
||||||
libsigrok4DSL = callPackage ./scopehal-apps/libsigrok4DSL.nix { };
|
libsigrok4DSL = callPackage ./scopehal-apps/libsigrok4DSL.nix { };
|
||||||
vulkan-sdk = callPackage ./scopehal-apps/vulkan-sdk.nix { };
|
vulkan-sdk = callPackage ./scopehal-apps/vulkan-sdk.nix { };
|
||||||
dsview = pkgs.libsForQt5.callPackage ./dsview { };
|
|
||||||
scopehal-apps = callPackage ./scopehal-apps { deprekages = deprekages.${system}; };
|
scopehal-apps = callPackage ./scopehal-apps { deprekages = deprekages.${system}; };
|
||||||
scopehal-sigrok-bridge = callPackage ./scopehal-apps/sigrok-bridge.nix {
|
scopehal-sigrok-bridge = callPackage ./scopehal-apps/sigrok-bridge.nix {
|
||||||
deprekages = deprekages.${system};
|
deprekages = deprekages.${system};
|
||||||
|
@ -40,7 +38,7 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
# apps
|
# apps
|
||||||
navit = callPackage ./navit.nix { };
|
navit = callPackage ./navit.nix { };
|
||||||
navit-with-maps = callPackage ./navit.nix { with_maps = true; };
|
navit-with-maps = callPackage ./navit.nix { with_maps = true; };
|
||||||
binary-ninja = callPackage ./binary-ninja.nix { inherit svd2py; };
|
binary-ninja = callPackage ./binary-ninja.nix { };
|
||||||
argos = callPackage ./argos.nix { };
|
argos = callPackage ./argos.nix { };
|
||||||
todoist-electron = callPackage ./todoist-electron.nix { };
|
todoist-electron = callPackage ./todoist-electron.nix { };
|
||||||
home-assistant-desktop = callPackage ./home-assistant-desktop/x86_64-linux.nix { };
|
home-assistant-desktop = callPackage ./home-assistant-desktop/x86_64-linux.nix { };
|
||||||
|
@ -69,7 +67,6 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
okc-agents = callPackage ./okc-agents.nix { };
|
okc-agents = callPackage ./okc-agents.nix { };
|
||||||
_7zz = pkgs._7zz.override { useUasm = true; };
|
_7zz = pkgs._7zz.override { useUasm = true; };
|
||||||
mergiraf = callPackage ./mergiraf.nix { };
|
mergiraf = callPackage ./mergiraf.nix { };
|
||||||
vja = callPackage ./vja.nix { };
|
|
||||||
|
|
||||||
# libraries
|
# libraries
|
||||||
libnfc-nci = callPackage ./libnfc-nci { };
|
libnfc-nci = callPackage ./libnfc-nci { };
|
||||||
|
@ -83,9 +80,6 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
jdk = jetbrains-jdk;
|
jdk = jetbrains-jdk;
|
||||||
};
|
};
|
||||||
|
|
||||||
# pytho modules
|
|
||||||
svd2py = callPackage ./svd2py.nix { };
|
|
||||||
|
|
||||||
# kernel modules
|
# kernel modules
|
||||||
linuxPackages_i915-sriov = callPackage ./i915-sriov/kernel.nix { };
|
linuxPackages_i915-sriov = callPackage ./i915-sriov/kernel.nix { };
|
||||||
i915-sriov = callPackage ./i915-sriov { linuxPackages = linuxPackages_i915-sriov; };
|
i915-sriov = callPackage ./i915-sriov { linuxPackages = linuxPackages_i915-sriov; };
|
||||||
|
@ -114,9 +108,6 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
# plasma
|
# plasma
|
||||||
kde-karousel = callPackage ./kde-karousel.nix { };
|
kde-karousel = callPackage ./kde-karousel.nix { };
|
||||||
|
|
||||||
# esp32
|
|
||||||
esp-env = esp-dev.${system}.esp-idf-full;
|
|
||||||
|
|
||||||
# xonsh and xontribs
|
# xonsh and xontribs
|
||||||
xonsh-with-xontribs = pkgs.xonsh.override {
|
xonsh-with-xontribs = pkgs.xonsh.override {
|
||||||
extraPackages = pythonPackages: [
|
extraPackages = pythonPackages: [
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
stdenv,
|
|
||||||
lib,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pkg-config,
|
|
||||||
cmake,
|
|
||||||
wrapQtAppsHook,
|
|
||||||
libzip,
|
|
||||||
boost,
|
|
||||||
fftw,
|
|
||||||
libusb1,
|
|
||||||
qtbase,
|
|
||||||
qtsvg,
|
|
||||||
qtwayland,
|
|
||||||
python3,
|
|
||||||
desktopToDarwinBundle,
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
|
||||||
pname = "dsview";
|
|
||||||
|
|
||||||
version = "2024-11-05";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "DreamSourceLab";
|
|
||||||
repo = "DSView";
|
|
||||||
rev = "2e9e2c8e726df4ef5687d39b83d4f797cc44b574";
|
|
||||||
sha256 = "sha256-F7T3wEasIzfhQXVaU8MVo06h3RB1nhWxkp2sUb8Ct80=";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Fix absolute install paths
|
|
||||||
./install.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
# /build/source/libsigrok4DSL/strutil.c:343:19: error: implicit declaration of function 'strcasecmp'; did you mean 'g_strcasecmp'? []
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration -Wno-error=format-security";
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
cmake
|
|
||||||
pkg-config
|
|
||||||
wrapQtAppsHook
|
|
||||||
] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
boost
|
|
||||||
fftw
|
|
||||||
qtbase
|
|
||||||
qtsvg
|
|
||||||
libusb1
|
|
||||||
libzip
|
|
||||||
python3
|
|
||||||
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
|
|
||||||
mainProgram = "DSView";
|
|
||||||
homepage = "https://www.dreamsourcelab.com/";
|
|
||||||
license = lib.licenses.gpl3Plus;
|
|
||||||
platforms = lib.platforms.unix;
|
|
||||||
};
|
|
||||||
})
|
|
|
@ -1,27 +0,0 @@
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index cc82669f..d196c78f 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -669,19 +669,10 @@ install(FILES DSView/icons/logo.svg DESTINATION share/icons/hicolor/scalable/app
|
|
||||||
install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
|
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
||||||
- install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
|
|
||||||
-
|
|
||||||
add_compile_definitions(_DEFAULT_SOURCE)
|
|
||||||
-
|
|
||||||
- if(IS_DIRECTORY /usr/lib/udev/rules.d)
|
|
||||||
- install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
|
||||||
- elseif(IS_DIRECTORY /lib/udev/rules.d)
|
|
||||||
- install(FILES DSView/DreamSourceLab.rules DESTINATION /lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
|
||||||
- elseif(IS_DIRECTORY /etc/udev/rules.d)
|
|
||||||
- install(FILES DSView/DreamSourceLab.rules DESTINATION /etc/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
|
||||||
- endif()
|
|
||||||
-
|
|
||||||
-endif()
|
|
||||||
+ install(FILES DSView/DreamSourceLab.rules DESTINATION lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
|
||||||
+ endif()
|
|
||||||
+install(FILES DSView/DSView.desktop DESTINATION share/applications RENAME dsview.desktop)
|
|
||||||
|
|
||||||
install(FILES NEWS25 DESTINATION share/DSView RENAME NEWS25)
|
|
||||||
install(FILES NEWS31 DESTINATION share/DSView RENAME NEWS31)
|
|
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
python3Packages,
|
|
||||||
fetchPypi,
|
|
||||||
xonsh
|
|
||||||
}:
|
|
||||||
python3Packages.buildPythonPackage rec {
|
|
||||||
pname = "svd2py";
|
|
||||||
version = "1.0.2";
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
hash = "sha256-V90CD13Fb9kPqZ3mZn3+zzCAgaMR2kX/pBg+dOMMhK0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
|
||||||
setuptools
|
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = with python3Packages; [
|
|
||||||
click
|
|
||||||
pyyaml
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
#
|
|
||||||
# oxfs faster sshfs (asynchronous ops)
|
|
||||||
#
|
|
||||||
# vim: et:ts=2:sw=2:
|
|
||||||
#
|
|
||||||
{
|
|
||||||
fetchPypi,
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
}:
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "vja";
|
|
||||||
version = "4.7.1";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
hash = "sha256-cVMJ5huUjtyUB+ywXgki9baoSAo860St11ZpKm5RmFU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
click
|
|
||||||
click-aliases
|
|
||||||
requests
|
|
||||||
parsedatetime
|
|
||||||
python-dateutil
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue