I have been sleeping on the nix package manager for too long. Nix shell is like Python's venv but for system packages, including Python packages! No more installing system packages for one off projects. Also direnv is really neat.

I might set up nixpkg, home manager, and direnv on my Kali box so when I need a specific package or Python version for a challenge I don't have to install it system-wide

#Linux #nixshell #homemanager

Once again, defeated by `libiconv` 😭 Can someone explain to me what's the minimal set-up to get Cargo to pick it up in a #nixShell running on macOS?

Edit: Never mind, once again I was defeated by my own bullshit 😅

@monkeydom
For flakes and nix v2 the equivalent conmand is
nix shell nixpkgs#someappname
and nixpkgs can be like these

```
nixpkgs
nixpkgs/nixos-unstable
nixpkgs/nixos-25.11
github:username/repo
```
etc
#nix #nixpkgs #nixshell #ephemeral #flakes

Deploying a  #nixshell it is kind of funny that building gcc requires g++ ...

#Nixshell isn’t executing its Python/poetry command and doesn’t exit
https://discourse.nixos.org/t/nix-shell-isnt-executing-its-python-poetry-command-and-doesnt-exit/58452

Anyone interested in contributing to this thread?

#NixOS #Nix #poetry #shellscripts

Nix-shell isn't executing its Python/poetry command and doesn't exit

Hi, Edit: current NixOS stable here. My config: GitHub - novoid/nixos-config: NixOS + flakes + home-manager with xfce, zsh, tmux, ... (host jackson) I’m trying to write a shell script wrapper that deals with Python dependencies (using poetry) and calls a series of Python commands. However, even the first Python call isn’t executed and it doesn’t exit. You can see everything from my minimal example on: https://paste.debian.net/1343505/ I tried to strip down the issue to its core. So I even r...

NixOS Discourse

Just looked into #nixshell and #direnv to setup a clean environment to compile greptimedb: https://github.com/GreptimeTeam/greptimedb/pull/5175

clang, gcc, mold and patched #rust are required.

chore: add nix-shell configuration for a minimal environment for development by sunng87 · Pull Request #5175 · GreptimeTeam/greptimedb

I hereby agree to the terms of the GreptimeDB CLA. Refer to a related PR or issue link (optional) What's changed and what's your intention? Meta task. This patch adds a configuration for ni...

GitHub
Test A Package Without Installing It Using Nix In Linux - OSTechNix

This tutorial describes how to create ad hoc shell environments to test a package without installing it using Nix package manager in Linux.

OSTechNix
Create Development Environments With Nix-shell In Linux - OSTechNix

Nix-shell allows you create customized development environments for each project, complete with all the necessary tools and libraries.

OSTechNix

Use nix search on macOS
nix-shell is an excellent package manager for any macOS in large part because it doesn't install things globally so you don't end up with version conflicts. While you can always go to the web to search for nix packages, you can also do this from the command line if you enable the experimental features of nix.

To do this on macOS open /etc/nix/nix.conf in your editor. I use NeoVim so my command is sud
https://sfndesign.ca/use-nix-search-on-macos/
#Code #nixshell

Use nix search on macOS - SFNdesign

nix-shell is an excellent package manager for any macOS in large part because it doesn’t install things globally so you don’t end up with version conflicts. While you can always go to the web to search for nix packages, you can also do this from the command line if you enable the experimental features of …

SFNdesign

LocalWP and Homebrew Conflicts
Like an idiot while I was going to do a "quick" bit of work to get ahead for next week on Friday. First I decided it was time to update Homebrew before I really got into diagnosing a problem for a client. Of course mayhem ensued with the wpcli commands no longer working with LocalWP after I ran brew update && brew upgrade.

There were two main errors to search
https://sfndesign.ca/localwp-and-homebrew-conflicts/
#Code #Homebrew #nixshell #wordpress #WpCli

LocalWP and Homebrew Conflicts - SFNdesign

Like an idiot while I was going to do a “quick” bit of work to get ahead for next week on Friday. First I decided it was time to update Homebrew before I really got into diagnosing a problem for a client. Of course mayhem ensued with the wpcli commands no longer working with LocalWP …

SFNdesign