Python nix-ld

This commit is contained in:
Alex Davies 2024-06-24 10:22:08 -03:00
parent 7174fd6ed8
commit af9699399b
2 changed files with 27 additions and 25 deletions

View File

@ -304,14 +304,14 @@
pkgs.waypipe
pkgs.pwgen
pkgs.neovim-remote
pkgs.pipx
#pkgs.pipx
pkgs.rclone
pkgs.pyright
pkgs.mosh
pkgs.jq
pkgs.copier
pkgs.pv
pkgs.poetry
#pkgs.poetry
pkgs.nmap
pkgs.dig
pkgs.tree
@ -322,34 +322,20 @@
pkgs.zig
pkgs.comma
(pkgs.writeShellScriptBin "poetry" ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
exec ${pkgs.poetry}/bin/poetry "$@"
'')
(pkgs.writeShellScriptBin "pipx" ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
exec ${pkgs.pipx}/bin/pipx "$@"
'')
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Hack"]; })
(pkgs.writeShellScriptBin "nvr-edit" ''
nvr --remote-wait $@
'')
# (pkgs.writeShellScriptBin "copyfile" ''
# set -e
# if [ "x$1" = "x" ]; then
# echo "Usage: [options] $0 file..." >&2
# echo "-p Copy path information; preserve tree structure"
# exit 1
# fi
# archive=`mktemp` || exit 1
# trap 'rm -f "''${archive}"' 1 2 3 15
# if [ "x$1" = "x-p" ]; then
# tar cf "''${archive}" "$@"
# else
# flags="cf"
# for file in "$@"; do
# filedir=`dirname "''${file}"`
# filename=`basename "''${file}"`
# tar "''${flags}" "''${archive}" -C "''${filedir}" "''${filename}"
# flags="rf"
# done
# fi
# gzip -c "''${archive}" | xclip -selection clipboard -loops 1 -i
# rm "''${archive}"
# '')
];
programs.zsh = {

View File

@ -35,6 +35,13 @@
pkgs.vulkan-headers
pkgs.vulkan-loader
pkgs.vulkan-tools
pkgs.kdePackages.full
pkgs.qt5.full
pkgs.libxkbcommon
pkgs.mesa
pkgs.glib
pkgs.fontconfig
pkgs.freetype
];
};
@ -56,6 +63,15 @@
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
exec ${pkgs.python3}/bin/python "$@"
'')
(pkgs.writeShellScriptBin "poetry" ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
exec ${pkgs.poetry}/bin/poetry "$@"
'')
(pkgs.writeShellScriptBin "pipx" ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
exec ${pkgs.pipx}/bin/pipx "$@"
'')
];
}