build behavior on my system; the output is the same in nix-shell -p lmms and nixos-rebuild switch with lmms in environment.systemPackages:
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
error: Cannot build '/nix/store/04a1hbdxh9cwcjyhprmfdrsvy5lsqf7c-lmms-1.2.2.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/428dr6k9827al4pcdlivhmmnbxx72wis-lmms-1.2.2
error: Cannot build '/nix/store/83bp026qxvg8976fjmyciyiv2s7l5mzj-man-paths.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/xs1wgzfrw175aavszqw9m51ciywwx0d3-man-paths
error: Cannot build '/nix/store/53h6w3n8374pc5d32hsjcd9889iimn5d-system-path.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/nhdns01qghp2pa5knvglq0rxnfifkq81-system-path
error: Cannot build '/nix/store/25570j7k7ryxkz8z7ph9r67wxc528az7-nixos-system-nixos-25.11pre887198.5f7f854b1475.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/4vfvbf83zkyg6z5cqvxz92qqqfi4wz14-nixos-system-nixos-25.11pre887198.5f7f854b1475
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 100.
nix-build nixpkgs#lmms --rebuild output:
error: some outputs of '/nix/store/if444mp22iqfblgzxlk260nqnzr7zpvs-lmms-1.2.2.drv' are not valid, so checking is not possible
hydra-check output:
Build Status for nixpkgs.lmms.x86_64-linux on jobset nixos/trunk-combined
https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.lmms.x86_64-linux
✖ (Failed) lmms-1.2.2 2025-10-22 https://hydra.nixos.org/build/310517024
✖ (Dependency failed) lmms-1.2.2 2025-10-21 https://hydra.nixos.org/build/310412973
✖ (Failed) lmms-1.2.2 2025-10-10 https://hydra.nixos.org/build/308852306
⏹ (Cancelled) lmms-1.2.2 2025-10-05 https://hydra.nixos.org/build/308752734
✔ lmms-1.2.2 2025-09-28 https://hydra.nixos.org/build/308432936
✔ lmms-1.2.2 2025-09-13 https://hydra.nixos.org/build/307566286
✖ (Dependency failed) lmms-1.2.2 2025-09-11 https://hydra.nixos.org/build/306931663
✖ (Dependency failed) lmms-1.2.2 2025-08-25 https://hydra.nixos.org/build/305613600
✔ lmms-1.2.2 2025-08-07 https://hydra.nixos.org/build/304215467
⏹ (Cancelled) lmms-1.2.2 2025-08-05 https://hydra.nixos.org/build/304180554