mirror of https://github.com/YosysHQ/nextpnr.git
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:
parent
41032f9d77
commit
25482d990f
21
shell.nix
21
shell.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue