File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed
pkgs/applications/misc/blender Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change 16
16
cudaSupport ? config . cudaSupport ,
17
17
dbus ,
18
18
embree ,
19
- fetchurl ,
19
+ fetchFromGitea ,
20
+ fetchgit ,
20
21
fetchzip ,
21
22
ffmpeg ,
22
23
fftw ,
@@ -101,10 +102,30 @@ stdenv.mkDerivation (finalAttrs: {
101
102
pname = "blender" ;
102
103
version = "4.1.0" ;
103
104
104
- src = fetchurl {
105
- url = "https://download.blender.org/source/${ finalAttrs . pname } -${ finalAttrs . version } .tar.xz" ;
106
- hash = "sha256-3AAtguPDQMk4VcZoRzDQGAG2aaKbHMa3XuuZC6aecj8=" ;
107
- } ;
105
+ srcs = [
106
+ ( fetchgit {
107
+ name = "source" ;
108
+ url = "https://projects.blender.org/blender/blender.git" ;
109
+ rev = "v${ finalAttrs . version } " ;
110
+ hash = "sha256-4LtBOufcaUJP49QxT9/EcFVjNbyvGf/gYFoVtljod1Y=" ;
111
+ fetchLFS = true ;
112
+ } )
113
+ ( fetchFromGitea {
114
+ name = "addons" ;
115
+ domain = "projects.blender.org" ;
116
+ owner = "blender" ;
117
+ repo = "blender-addons" ;
118
+ rev = "v${ finalAttrs . version } " ;
119
+ hash = "sha256-OHEUtGiubZNf3nsT4LfHuGyOhfVPk2H3osZ1lWJL4jI=" ;
120
+ } )
121
+ ] ;
122
+
123
+ sourceRoot = "source" ;
124
+
125
+ prePatch = ''
126
+ mkdir scripts/addons
127
+ cp -Rv --no-preserve=all ../addons/* scripts/addons
128
+ '' ;
108
129
109
130
patches = [ ./draco.patch ] ++ lib . optional stdenv . isDarwin ./darwin.patch ;
110
131
You can’t perform that action at this time.
0 commit comments