nix: fix issue with latest apycula being needed and it not being in Nixpkgs stable (#1690)

* nix: fix issue with latest apycula being needed and it not being in Nixpkgs stable

* nix: we really should be using the latest version unless a regression happens tbh
This commit is contained in:
Lunaphied 2026-04-04 16:38:55 +02:00 committed by GitHub
parent 41032f9d77
commit 25482d990f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 3 deletions

View File

@ -1,10 +1,25 @@
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/25.11.tar.gz") {} }:
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz") {} }:
let
inherit (pkgs) stdenv lib;
inherit (pkgs) stdenv lib fetchPypi;
inherit (stdenv.hostPlatform) isDarwin;
pythonPkgs = pkgs.python3Packages;
boostPython = pkgs.boost.override { python = pythonPkgs.python; enablePython = true; };
apycula = let version = "0.31"; in pythonPkgs.apycula.overridePythonAttrs (old: {
inherit version;
src = fetchPypi {
inherit version;
pname = "apycula";
hash = "sha256-77pr4HbS2adFeEI3Q3KzcCfJMi4UomOtKnuGAxobxF0=";
};
dependencies = with pythonPkgs; [
msgspec
numpy
fastcrc
] ++ old.dependencies;
});
in pkgs.mkShell {
buildInputs = with pkgs; [
cmake
@ -12,7 +27,7 @@ in pkgs.mkShell {
eigen
boostPython
pythonPkgs.python
pythonPkgs.apycula
apycula
pkgs.qt6.qtbase
lld
llvmPackages.openmp