modules/dev-tools: apply latest changes to fix apache directory studio
This commit is contained in:
parent
71f3379ae2
commit
bb92f8e28d
4 changed files with 29 additions and 6 deletions
hosts
modules/home-manager/programs
users/jan
|
@ -12,8 +12,6 @@ in
|
|||
xmonad.projects = import ./xmonad-projects.secret.nix;
|
||||
};
|
||||
|
||||
local.programs.dev-tools.k8s.enable = false;
|
||||
|
||||
local.programs.libreoffice.enable = true;
|
||||
|
||||
local.services.lan-mouse.settings = {
|
||||
|
|
|
@ -23,8 +23,6 @@ in
|
|||
|
||||
# local.programs.editors.arduino-ide.enable = true;
|
||||
|
||||
local.programs.dev-tools.k8s.enable = true;
|
||||
|
||||
local.programs.libreoffice = {
|
||||
enable = true;
|
||||
spellCheckDicts = with pkgs.hunspellDicts; [
|
||||
|
@ -42,8 +40,6 @@ in
|
|||
# godot_4
|
||||
# libresprite
|
||||
|
||||
pkgs.apache-directory-studio
|
||||
|
||||
## 3d printer
|
||||
# Cannot build unstable Cura!
|
||||
# See: https://github.com/NixOS/nixpkgs/issues/325896
|
||||
|
|
|
@ -6,6 +6,29 @@ let
|
|||
kubectlCompletionsZsh = pkgs.runCommand "kubectl-completion.zsh" {} ''
|
||||
${lib.getExe pkgs.kubectl} completion zsh > $out
|
||||
'';
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/pull/384524/files
|
||||
apacheDirectoryStudio = with pkgs.unstable; (apache-directory-studio.overrideAttrs (attrs: {
|
||||
installPhase = ''
|
||||
dest="$out/libexec/ApacheDirectoryStudio"
|
||||
mkdir -p "$dest"
|
||||
cp -r . "$dest"
|
||||
mkdir -p "$out/bin"
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
"$dest/ApacheDirectoryStudio"
|
||||
# About `/tmp/SWT-GDBusServer`, see
|
||||
# https://github.com/adoptium/adoptium-support/issues/785#issuecomment-1866680133
|
||||
# and
|
||||
# https://github.com/adoptium/adoptium-support/issues/785#issuecomment-2387481967.
|
||||
makeWrapper "$dest/ApacheDirectoryStudio" \
|
||||
"$out/bin/ApacheDirectoryStudio" \
|
||||
--prefix PATH : "${jdk}/bin" \
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib webkitgtk_4_0 ] } \
|
||||
--run "mkdir -p /tmp/SWT-GDBusServer"
|
||||
install -D icon.xpm "$out/share/pixmaps/apache-directory-studio.xpm"
|
||||
install -D -t "$out/share/applications" ${attrs.desktopItem}/share/applications/*
|
||||
'';
|
||||
}));
|
||||
in
|
||||
{
|
||||
options.local.programs.dev-tools = with lib; {
|
||||
|
@ -25,6 +48,7 @@ in
|
|||
eza.enable = mkEnableOption "eza. ls replacement";
|
||||
direnv.enable = mkEnableOption "direnv";
|
||||
zoxide.enable = mkEnableOption "zoxide";
|
||||
ldap.enable = mkEnableOption "ldap";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
|
@ -109,5 +133,9 @@ in
|
|||
(lib.mkIf cfg.psql.enable {
|
||||
home.packages = [ cfg.psql.package ];
|
||||
})
|
||||
|
||||
(lib.mkIf cfg.ldap.enable {
|
||||
home.packages = [ apacheDirectoryStudio ];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -115,6 +115,7 @@
|
|||
eza.enable = lib.mkDefault true;
|
||||
direnv.enable = lib.mkDefault true;
|
||||
zoxide.enable = lib.mkDefault true;
|
||||
ldap.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
local.programs.share-files.croc.enable = lib.mkDefault true;
|
||||
|
|
Loading…
Add table
Reference in a new issue