File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed
pkgs/by-name/_0/_010editor Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,7 @@ stdenv.mkDerivation (finalAttrs: {
1515 pname = "010editor" ;
1616 version = "16.0" ;
1717
18- src =
19- if stdenv . hostPlatform . isLinux then
20- fetchzip {
21- url = "https://download.sweetscape.com/010EditorLinux64Installer${ finalAttrs . version } .tar.gz" ;
22- hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M=" ;
23- }
24- else
25- fetchurl {
26- url = "https://download.sweetscape.com/010EditorMac64Installer${ finalAttrs . version } .dmg" ;
27- hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4=" ;
28- } ;
18+ src = finalAttrs . passthru . srcs . ${ stdenv . hostPlatform . system } ;
2919
3020 sourceRoot = "." ;
3121
@@ -96,6 +86,23 @@ stdenv.mkDerivation (finalAttrs: {
9686 ] ;
9787 } ;
9888
89+ passthru . srcs = {
90+ x86_64-linux = fetchzip {
91+ url = "https://download.sweetscape.com/010EditorLinux64Installer${ finalAttrs . version } .tar.gz" ;
92+ hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M=" ;
93+ } ;
94+
95+ x86_64-darwin = fetchurl {
96+ url = "https://download.sweetscape.com/010EditorMac64Installer${ finalAttrs . version } .dmg" ;
97+ hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4=" ;
98+ } ;
99+
100+ aarch64-darwin = fetchurl {
101+ url = "https://download.sweetscape.com/010EditorMacARM64Installer${ finalAttrs . version } .dmg" ;
102+ hash = "sha256-CtExBuu6EL8ilq3+gtwjNwnMxXkKgPdrk34tYvjN2ps=" ;
103+ } ;
104+ } ;
105+
99106 meta = {
100107 description = "Text and hex editor" ;
101108 homepage = "https://www.sweetscape.com/010editor/" ;
You can’t perform that action at this time.
0 commit comments