mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
iaito and radare
This commit is contained in:
parent
b7a3ae5fce
commit
5e75323f90
5 changed files with 100 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
darwin-zsh-completions
|
||||
firefox-mac
|
||||
freecad-mac
|
||||
iaito
|
||||
org-auctex
|
||||
pinentry-mac
|
||||
pinentry-touchid
|
||||
|
|
|
@ -89,6 +89,7 @@ in {
|
|||
gnuplot
|
||||
graphviz
|
||||
htop
|
||||
iaito
|
||||
jq
|
||||
mu
|
||||
nix-review
|
||||
|
@ -104,6 +105,7 @@ in {
|
|||
poppler
|
||||
pv
|
||||
python-wp
|
||||
radare2
|
||||
ripgrep
|
||||
rnix-lsp
|
||||
rsync
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
aspellPackage = pkgs.aspellWithDicts (d: [d.en d.en-science d.en-computers d.fr]);
|
||||
emacsPackage =
|
||||
(pkgs.emacsPackagesFor pkgs.emacsGit).emacsWithPackages
|
||||
(epkgs:
|
||||
|
@ -113,6 +114,7 @@
|
|||
yasnippet
|
||||
])
|
||||
++ (with pkgs; [
|
||||
aspellPackage
|
||||
gnuplot
|
||||
plantuml
|
||||
sqlite
|
||||
|
|
|
@ -3,6 +3,7 @@ _final: prev: {
|
|||
darwin-zsh-completions = prev.callPackage ./darwin-zsh-completions.nix {};
|
||||
firefox-mac = prev.callPackage ./firefox-mac.nix {};
|
||||
freecad-mac = prev.callPackage ./freecad-mac.nix {};
|
||||
iaito = prev.libsForQt5.callPackage ./iaito.nix {};
|
||||
mkMacBinPackage = import ./mk-mac-binpkg.nix prev;
|
||||
org-auctex = prev.callPackage ./org-auctex.nix {};
|
||||
pinentry-mac = prev.callPackage ./pinentry-mac.nix {};
|
||||
|
|
94
packages/iaito.nix
Normal file
94
packages/iaito.nix
Normal file
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
python3,
|
||||
qtbase,
|
||||
qtsvg,
|
||||
qttools,
|
||||
radare2,
|
||||
wrapQtAppsHook,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iaito";
|
||||
version = "5.8.4";
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub rec {
|
||||
owner = "radareorg";
|
||||
repo = "iaito";
|
||||
rev = version;
|
||||
hash = "sha256-pt2vq+JN+Ccv+9o8s2y87xTVeQp2WJ0UfKdoWGsBkUI=";
|
||||
name = repo;
|
||||
})
|
||||
(fetchFromGitHub rec {
|
||||
owner = "radareorg";
|
||||
repo = "iaito-translations";
|
||||
rev = "e66b3a962a7fc7dfd730764180011ecffbb206bf";
|
||||
hash = "sha256-6NRTZ/ydypsB5TwbivvwOH9TEMAff/LH69hCXTvMPp8=";
|
||||
name = repo;
|
||||
})
|
||||
];
|
||||
sourceRoot = "iaito/src";
|
||||
|
||||
postUnpack = ''
|
||||
chmod -R u+w iaito-translations
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace common/ResourcePaths.cpp \
|
||||
--replace "/app/share/iaito/translations" "$out/share/iaito/translations"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
radare2
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
pushd ../../../iaito-translations
|
||||
make build PREFIX=$out
|
||||
popd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -m755 -Dt $out/bin iaito
|
||||
install -m644 -Dt $out/share/metainfo ../org.radare.iaito.appdata.xml
|
||||
install -m644 -Dt $out/share/applications ../org.radare.iaito.desktop
|
||||
install -m644 -Dt $out/share/pixmaps ../img/iaito-o.svg
|
||||
|
||||
pushd ../../../iaito-translations
|
||||
make install PREFIX=$out -j$NIX_BUILD_CORES
|
||||
popd
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An official graphical interface of radare2";
|
||||
longDescription = ''
|
||||
iaito is the official graphical interface of radare2. It's the
|
||||
continuation of Cutter for radare2 after the Rizin fork.
|
||||
'';
|
||||
homepage = "https://radare.org/n/iaito.html";
|
||||
changelog = "https://github.com/radareorg/iaito/releases/tag/${version}";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [azahi];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue