If I have a derivation in my #nixosConfigurations flake for/using a certain package (e.g. rns, lxmf) and it uses python3.packages and follows nixpkgs , how do I protect the derivation against breakage if my #nixpkgs get a new lock.nix i.e. I move to newer updated packages for the whole computer ? #nixos #nix #python3

@adingbatponder I see two solutions:

1. Add a separate input with your desired nixpkgs, and pin it either manually with the commit in the url, or only nix flake update it individually
2. Put your derivation into a separate flake with its own pinning.

@nobodyinperson Ok. Cheers. I went for { lib, pkgs, python ? pkgs.python313 }: { etc. etc.}
and
perSystem = { config, self', pkgs, lib, system, ... }:
let
# Pin Python version for all Reticulum packages
python = pkgs.python313;
in { packages = {
# Core Reticulum libraries
rns = pkgs.callPackage ../features/reticulum/packages/rns.nix { inherit python; };
etc. }:

{etc.}

Just set python ver.
see https://codeberg.org/adingbatponder/reticulum_nixos_flake
parts/reticulum.nix
features/reticulum/packages

reticulum_nixos_flake

Installing reticulum messaging and site tools MeshChat and Nomadnet using NixOS flake

Codeberg.org