diff options
Diffstat (limited to 'nix/hosts/hacknix/pkgs')
-rw-r--r-- | nix/hosts/hacknix/pkgs/helix-2303/default.nix | 18 | ||||
-rw-r--r-- | nix/hosts/hacknix/pkgs/radare2-5.8.4/default.nix | 116 |
2 files changed, 82 insertions, 52 deletions
diff --git a/nix/hosts/hacknix/pkgs/helix-2303/default.nix b/nix/hosts/hacknix/pkgs/helix-2303/default.nix index bdbc112..eb54a90 100644 --- a/nix/hosts/hacknix/pkgs/helix-2303/default.nix +++ b/nix/hosts/hacknix/pkgs/helix-2303/default.nix @@ -1,4 +1,10 @@ -{ fetchzip, lib, rustPlatform, installShellFiles, makeWrapper }: +{ + fetchzip, + lib, + rustPlatform, + installShellFiles, + makeWrapper, +}: rustPlatform.buildRustPackage rec { pname = "helix"; @@ -29,7 +35,10 @@ rustPlatform.buildRustPackage rec { }; }; - nativeBuildInputs = [ installShellFiles makeWrapper ]; + nativeBuildInputs = [ + installShellFiles + makeWrapper + ]; postInstall = '' # not needed at runtime @@ -50,6 +59,9 @@ rustPlatform.buildRustPackage rec { homepage = "https://helix-editor.com"; license = licenses.mpl20; mainProgram = "hx"; - maintainers = with maintainers; [ danth yusdacra ]; + maintainers = with maintainers; [ + danth + yusdacra + ]; }; } diff --git a/nix/hosts/hacknix/pkgs/radare2-5.8.4/default.nix b/nix/hosts/hacknix/pkgs/radare2-5.8.4/default.nix index cbd6a56..ebabd40 100644 --- a/nix/hosts/hacknix/pkgs/radare2-5.8.4/default.nix +++ b/nix/hosts/hacknix/pkgs/radare2-5.8.4/default.nix @@ -1,32 +1,33 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchpatch -, buildPackages -, pkg-config -, meson -, ninja -, libusb-compat-0_1 -, readline -, libewf -, perl -, zlib -, openssl -, libuv -, file -, libzip -, xxHash -, gtk2 -, vte -, gtkdialog -, python3 -, ruby -, lua -, lz4 -, capstone -, useX11 ? false -, rubyBindings ? false -, luaBindings ? false +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + buildPackages, + pkg-config, + meson, + ninja, + libusb-compat-0_1, + readline, + libewf, + perl, + zlib, + openssl, + libuv, + file, + libzip, + xxHash, + gtk2, + vte, + gtkdialog, + python3, + ruby, + lua, + lz4, + capstone, + useX11 ? false, + rubyBindings ? false, + luaBindings ? false, }: let @@ -71,12 +72,12 @@ stdenv.mkDerivation rec { ''; mesonFlags = [ - "-Duse_sys_capstone=true" - "-Duse_sys_magic=true" - "-Duse_sys_zip=true" - "-Duse_sys_xxhash=true" - "-Duse_sys_lz4=true" - "-Dr2_gittap=${version}" + "-Duse_sys_capstone=true" + "-Duse_sys_magic=true" + "-Duse_sys_zip=true" + "-Duse_sys_xxhash=true" + "-Duse_sys_lz4=true" + "-Dr2_gittap=${version}" ]; enableParallelBuilding = true; @@ -84,19 +85,30 @@ stdenv.mkDerivation rec { strictDeps = true; - nativeBuildInputs = [ pkg-config meson ninja python3 ]; - buildInputs = [ - capstone - file - readline - libusb-compat-0_1 - libewf - perl - zlib - openssl - libuv - lz4 - ] ++ lib.optionals useX11 [ gtkdialog vte gtk2 ] + nativeBuildInputs = [ + pkg-config + meson + ninja + python3 + ]; + buildInputs = + [ + capstone + file + readline + libusb-compat-0_1 + libewf + perl + zlib + openssl + libuv + lz4 + ] + ++ lib.optionals useX11 [ + gtkdialog + vte + gtk2 + ] ++ lib.optionals rubyBindings [ ruby ] ++ lib.optionals luaBindings [ lua ]; @@ -112,7 +124,13 @@ stdenv.mkDerivation rec { homepage = "https://radare.org"; changelog = "https://github.com/radareorg/radare2/releases/tag/${version}"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ azahi raskin makefu mic92 arkivm ]; + maintainers = with maintainers; [ + azahi + raskin + makefu + mic92 + arkivm + ]; platforms = platforms.unix; }; } |