mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-28 13:57:13 +02:00
feat(blender): build 5.2 LTS with CUDA and OptiX
This commit is contained in:
Generated
+17
-23
@@ -24,28 +24,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"blender-bin": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"dir": "blender",
|
|
||||||
"lastModified": 1766785730,
|
|
||||||
"narHash": "sha256-R0SImlpvVtp4gBCjWtrjyWlir2vMEs03XdVBJtsryUU=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "nix-warez",
|
|
||||||
"rev": "32a73188c4026cea3f8ed97078ace45bf9f7f578",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"dir": "blender",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "nix-warez",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bun2nix": {
|
"bun2nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
@@ -675,6 +653,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-blender": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784871293,
|
||||||
|
"narHash": "sha256-bf8Gay/Vopie4kGiw1qg1PQBKL4MNU7Li9ThI80JE1c=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "596a0d7dc02bb847b5f4cb44a20a15ff12275bb3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-darwin": {
|
"nixpkgs-darwin": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780030872,
|
"lastModified": 1780030872,
|
||||||
@@ -892,7 +886,6 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"blender-bin": "blender-bin",
|
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"haumea": "haumea",
|
"haumea": "haumea",
|
||||||
@@ -907,6 +900,7 @@
|
|||||||
"nixpak": "nixpak",
|
"nixpak": "nixpak",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-2505": "nixpkgs-2505",
|
"nixpkgs-2505": "nixpkgs-2505",
|
||||||
|
"nixpkgs-blender": "nixpkgs-blender",
|
||||||
"nixpkgs-darwin": "nixpkgs-darwin",
|
"nixpkgs-darwin": "nixpkgs-darwin",
|
||||||
"nixpkgs-master": "nixpkgs-master",
|
"nixpkgs-master": "nixpkgs-master",
|
||||||
"nixpkgs-patched": "nixpkgs-patched",
|
"nixpkgs-patched": "nixpkgs-patched",
|
||||||
|
|||||||
@@ -119,10 +119,8 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
blender-bin = {
|
# Track Blender from master while keeping its lock entry independent from regular nixpkgs.
|
||||||
url = "github:edolstra/nix-warez?dir=blender";
|
nixpkgs-blender.url = "github:nixos/nixpkgs/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixos-apple-silicon = {
|
nixos-apple-silicon = {
|
||||||
url = "github:nix-community/nixos-apple-silicon";
|
url = "github:nix-community/nixos-apple-silicon";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
pkgs-master,
|
pkgs-master,
|
||||||
blender-bin,
|
pkgs-blender,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
musescore # music notation
|
musescore # music notation
|
||||||
pkgs-master.orca-slicer # 3d printer slicer app
|
pkgs-master.orca-slicer # 3d printer slicer app
|
||||||
pkgs-master.bambu-studio # bambu 3d printer slicer app
|
pkgs-master.bambu-studio # bambu 3d printer slicer app
|
||||||
|
pkgs-blender.blender # 3d modeling
|
||||||
# reaper # audio production
|
# reaper # audio production
|
||||||
# sonic-pi # music programming
|
# sonic-pi # music programming
|
||||||
|
|
||||||
@@ -37,9 +38,6 @@
|
|||||||
hyphenDicts.en_GB # British English
|
hyphenDicts.en_GB # British English
|
||||||
]
|
]
|
||||||
++ (lib.optionals pkgs.stdenv.isx86_64 [
|
++ (lib.optionals pkgs.stdenv.isx86_64 [
|
||||||
# https://github.com/edolstra/nix-warez/blob/master/blender/flake.nix
|
|
||||||
blender-bin.packages.${pkgs.stdenv.hostPlatform.system}.blender_4_2 # 3d modeling
|
|
||||||
|
|
||||||
ldtk # A modern, versatile 2D level editor
|
ldtk # A modern, versatile 2D level editor
|
||||||
|
|
||||||
# fpga
|
# fpga
|
||||||
|
|||||||
+24
-6
@@ -13,9 +13,15 @@ let
|
|||||||
# so that I can use them in all my nixos/home-manager/darwin modules.
|
# so that I can use them in all my nixos/home-manager/darwin modules.
|
||||||
genSpecialArgs =
|
genSpecialArgs =
|
||||||
system:
|
system:
|
||||||
|
let
|
||||||
|
pkgs-stable = import inputs.nixpkgs-stable {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
inputs
|
inputs
|
||||||
// {
|
// {
|
||||||
inherit mylib myvars;
|
inherit mylib myvars pkgs-stable;
|
||||||
|
|
||||||
# use unstable branch for some packages to get the latest updates
|
# use unstable branch for some packages to get the latest updates
|
||||||
# pkgs-unstable = import inputs.nixpkgs-unstable {
|
# pkgs-unstable = import inputs.nixpkgs-unstable {
|
||||||
@@ -28,11 +34,6 @@ let
|
|||||||
# To use chrome, we need to allow the installation of non-free software
|
# To use chrome, we need to allow the installation of non-free software
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
pkgs-stable = import inputs.nixpkgs-stable {
|
|
||||||
inherit system;
|
|
||||||
# To use chrome, we need to allow the installation of non-free software
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
pkgs-patched = import inputs.nixpkgs-patched {
|
pkgs-patched = import inputs.nixpkgs-patched {
|
||||||
inherit system;
|
inherit system;
|
||||||
# to use chrome, we need to allow the installation of non-free software
|
# to use chrome, we need to allow the installation of non-free software
|
||||||
@@ -43,6 +44,23 @@ let
|
|||||||
# to use chrome, we need to allow the installation of non-free software
|
# to use chrome, we need to allow the installation of non-free software
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
pkgs-blender = import inputs.nixpkgs-blender {
|
||||||
|
inherit system;
|
||||||
|
config = lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
|
allowUnfree = true;
|
||||||
|
cudaSupport = true;
|
||||||
|
# CUDA compute capability 8.9 targets the RTX 4090 (Ada) and avoids building kernels
|
||||||
|
# for unrelated GPU architectures.
|
||||||
|
cudaCapabilities = [ "8.9" ];
|
||||||
|
};
|
||||||
|
overlays = lib.optional (system == "x86_64-linux") (
|
||||||
|
_: prev: {
|
||||||
|
# CMake 4.2+ breaks OIDN's nested CUDA build with nixpkgs' split CUDAToolkit_ROOT.
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/544701
|
||||||
|
openimagedenoise = prev.openimagedenoise.override { cmake = pkgs-stable.cmake; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
pkgs-x64 = import nixpkgs {
|
pkgs-x64 = import nixpkgs {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|||||||
Reference in New Issue
Block a user