lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

racket: reformat using `nixfmt-rfc-style`

+223 -129
+134 -84
pkgs/development/interpreters/racket/default.nix
··· 1 - { lib, stdenv, fetchurl, makeFontsConf 2 - , cacert 3 - , cairo, coreutils, fontconfig, freefont_ttf 4 - , glib, gmp 5 - , gtk3 6 - , glibcLocales 7 - , libedit, libffi 8 - , libiconv 9 - , libGL 10 - , libGLU 11 - , libjpeg 12 - , ncurses 13 - , libpng, libtool, mpfr, openssl, pango, poppler 14 - , readline, sqlite 15 - , disableDocs ? false 16 - , CoreFoundation 17 - , gsettings-desktop-schemas 18 - , wrapGAppsHook3 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + makeFontsConf, 6 + cacert, 7 + cairo, 8 + coreutils, 9 + fontconfig, 10 + freefont_ttf, 11 + glib, 12 + gmp, 13 + gtk3, 14 + glibcLocales, 15 + libedit, 16 + libffi, 17 + libiconv, 18 + libGL, 19 + libGLU, 20 + libjpeg, 21 + ncurses, 22 + libpng, 23 + libtool, 24 + mpfr, 25 + openssl, 26 + pango, 27 + poppler, 28 + readline, 29 + sqlite, 30 + disableDocs ? false, 31 + CoreFoundation, 32 + gsettings-desktop-schemas, 33 + wrapGAppsHook3, 19 34 }: 20 35 21 36 let 22 37 23 - fontsConf = makeFontsConf { 24 - fontDirectories = [ freefont_ttf ]; 25 - }; 38 + fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; 26 39 27 - libPath = lib.makeLibraryPath ([ 28 - cairo 29 - fontconfig 30 - glib 31 - gmp 32 - gtk3 33 - gsettings-desktop-schemas 34 - libedit 35 - libjpeg 36 - libpng 37 - mpfr 38 - ncurses 39 - openssl 40 - pango 41 - poppler 42 - readline 43 - sqlite 44 - ] ++ lib.optionals (!stdenv.isDarwin) [ 45 - libGL 46 - libGLU 47 - ]); 48 - 40 + libPath = lib.makeLibraryPath ( 41 + [ 42 + cairo 43 + fontconfig 44 + glib 45 + gmp 46 + gtk3 47 + gsettings-desktop-schemas 48 + libedit 49 + libjpeg 50 + libpng 51 + mpfr 52 + ncurses 53 + openssl 54 + pango 55 + poppler 56 + readline 57 + sqlite 58 + ] 59 + ++ lib.optionals (!stdenv.isDarwin) [ 60 + libGL 61 + libGLU 62 + ] 63 + ); 49 64 in 50 65 51 66 stdenv.mkDerivation rec { 52 67 pname = "racket"; 53 68 version = "8.13"; # always change at once with ./minimal.nix 54 69 55 - src = (lib.makeOverridable ({ name, hash }: 56 - fetchurl { 57 - url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz"; 58 - inherit hash; 59 - } 60 - )) { 61 - name = "${pname}-${version}"; 62 - hash = "sha256-AB4EkgRAtlic9i1Wd9GMwv9q6Puvd+Y7iozyCJBoX7w="; 63 - }; 70 + src = 71 + (lib.makeOverridable ( 72 + { name, hash }: 73 + fetchurl { 74 + url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz"; 75 + inherit hash; 76 + } 77 + )) 78 + { 79 + name = "${pname}-${version}"; 80 + hash = "sha256-AB4EkgRAtlic9i1Wd9GMwv9q6Puvd+Y7iozyCJBoX7w="; 81 + }; 64 82 65 83 FONTCONFIG_FILE = fontsConf; 66 84 LD_LIBRARY_PATH = libPath; 67 85 NIX_LDFLAGS = lib.concatStringsSep " " [ 68 - (lib.optionalString (stdenv.cc.isGNU && ! stdenv.isDarwin) "-lgcc_s") 86 + (lib.optionalString (stdenv.cc.isGNU && !stdenv.isDarwin) "-lgcc_s") 69 87 ]; 70 88 71 - nativeBuildInputs = [ cacert wrapGAppsHook3 ]; 89 + nativeBuildInputs = [ 90 + cacert 91 + wrapGAppsHook3 92 + ]; 72 93 73 - buildInputs = [ fontconfig libffi libtool sqlite gsettings-desktop-schemas gtk3 ncurses ] 74 - ++ lib.optionals stdenv.isDarwin [ libiconv CoreFoundation ]; 94 + buildInputs = 95 + [ 96 + fontconfig 97 + libffi 98 + libtool 99 + sqlite 100 + gsettings-desktop-schemas 101 + gtk3 102 + ncurses 103 + ] 104 + ++ lib.optionals stdenv.isDarwin [ 105 + libiconv 106 + CoreFoundation 107 + ]; 75 108 76 109 patches = [ 77 110 # Hardcode variant detection because we wrap the Racket binary making it ··· 87 120 ./force-remove-codesign-then-add.patch 88 121 ]; 89 122 90 - preConfigure = '' 91 - unset AR 92 - for f in src/lt/configure src/cs/c/configure src/bc/src/string.c; do 93 - substituteInPlace "$f" \ 94 - --replace /usr/bin/uname ${coreutils}/bin/uname \ 95 - --replace /bin/cp ${coreutils}/bin/cp \ 96 - --replace /bin/ln ${coreutils}/bin/ln \ 97 - --replace /bin/rm ${coreutils}/bin/rm \ 98 - --replace /bin/true ${coreutils}/bin/true 99 - done 123 + preConfigure = 124 + '' 125 + unset AR 126 + for f in src/lt/configure src/cs/c/configure src/bc/src/string.c; do 127 + substituteInPlace "$f" \ 128 + --replace /usr/bin/uname ${coreutils}/bin/uname \ 129 + --replace /bin/cp ${coreutils}/bin/cp \ 130 + --replace /bin/ln ${coreutils}/bin/ln \ 131 + --replace /bin/rm ${coreutils}/bin/rm \ 132 + --replace /bin/true ${coreutils}/bin/true 133 + done 100 134 101 - # The configure script forces using `libtool -o` as AR on Darwin. But, the 102 - # `-o` option is only available from Apple libtool. GNU ar works here. 103 - substituteInPlace src/ChezScheme/zlib/configure \ 104 - --replace 'ARFLAGS="-o"' 'AR=ar; ARFLAGS="rc"' 135 + # The configure script forces using `libtool -o` as AR on Darwin. But, the 136 + # `-o` option is only available from Apple libtool. GNU ar works here. 137 + substituteInPlace src/ChezScheme/zlib/configure \ 138 + --replace 'ARFLAGS="-o"' 'AR=ar; ARFLAGS="rc"' 105 139 106 - mkdir src/build 107 - cd src/build 140 + mkdir src/build 141 + cd src/build 108 142 109 - '' + lib.optionalString stdenv.isLinux '' 110 - gappsWrapperArgs+=("--prefix" "LD_LIBRARY_PATH" ":" ${libPath}) 111 - gappsWrapperArgs+=("--set" "LOCALE_ARCHIVE" "${glibcLocales}/lib/locale/locale-archive") 112 - '' + lib.optionalString stdenv.isDarwin '' 113 - gappsWrapperArgs+=("--prefix" "DYLD_LIBRARY_PATH" ":" ${libPath}) 114 - '' 115 - ; 143 + '' 144 + + lib.optionalString stdenv.isLinux '' 145 + gappsWrapperArgs+=("--prefix" "LD_LIBRARY_PATH" ":" ${libPath}) 146 + gappsWrapperArgs+=("--set" "LOCALE_ARCHIVE" "${glibcLocales}/lib/locale/locale-archive") 147 + '' 148 + + lib.optionalString stdenv.isDarwin '' 149 + gappsWrapperArgs+=("--prefix" "DYLD_LIBRARY_PATH" ":" ${libPath}) 150 + ''; 116 151 117 152 preBuild = lib.optionalString stdenv.isDarwin '' 118 153 # Cannot set DYLD_LIBRARY_PATH as an attr of this drv, becasue dynamic ··· 129 164 ''; 130 165 131 166 shared = if stdenv.isDarwin then "dylib" else "shared"; 132 - configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ] 133 - ++ lib.optionals disableDocs [ "--disable-docs" ] 134 - ++ lib.optionals stdenv.isDarwin [ "--disable-strip" "--enable-xonx" ]; 167 + configureFlags = 168 + [ 169 + "--enable-${shared}" 170 + "--enable-lt=${libtool}/bin/libtool" 171 + ] 172 + ++ lib.optionals disableDocs [ "--disable-docs" ] 173 + ++ lib.optionals stdenv.isDarwin [ 174 + "--disable-strip" 175 + "--enable-xonx" 176 + ]; 135 177 136 178 configureScript = "../configure"; 137 179 ··· 152 194 ''; 153 195 homepage = "https://racket-lang.org/"; 154 196 changelog = "https://github.com/racket/racket/releases/tag/v${version}"; 155 - license = with licenses; [ asl20 /* or */ mit ]; 197 + license = with licenses; [ 198 + asl20 # or 199 + mit 200 + ]; 156 201 maintainers = with maintainers; [ vrthra ]; 157 - platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-linux" "aarch64-darwin" ]; 202 + platforms = [ 203 + "x86_64-darwin" 204 + "x86_64-linux" 205 + "aarch64-linux" 206 + "aarch64-darwin" 207 + ]; 158 208 }; 159 209 }
+11 -6
pkgs/development/interpreters/racket/minimal.nix
··· 1 - { racket 2 - }: 1 + { racket }: 3 2 4 3 racket.overrideAttrs (oldAttrs: rec { 5 4 pname = "racket-minimal"; ··· 11 10 12 11 meta = oldAttrs.meta // { 13 12 description = "Racket without bundled packages, such as Dr. Racket"; 14 - longDescription = ''The essential package racket-libs is included, 15 - as well as libraries that live in collections. In particular, raco 16 - and the pkg library are still bundled. 13 + longDescription = '' 14 + The essential package racket-libs is included, 15 + as well as libraries that live in collections. In particular, raco 16 + and the pkg library are still bundled. 17 17 ''; 18 - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 18 + platforms = [ 19 + "x86_64-linux" 20 + "aarch64-linux" 21 + "x86_64-darwin" 22 + "aarch64-darwin" 23 + ]; 19 24 }; 20 25 })
+78 -39
pkgs/development/interpreters/racket/racket_7_9.nix
··· 1 - { lib, stdenv, fetchurl, makeFontsConf 2 - , cacert 3 - , cairo, coreutils, fontconfig, freefont_ttf 4 - , glib, gmp 5 - , gtk3 6 - , libedit, libffi 7 - , libiconv 8 - , libGL 9 - , libGLU 10 - , libjpeg 11 - , libpng, libtool, mpfr, openssl, pango, poppler 12 - , readline, sqlite 13 - , disableDocs ? false 14 - , CoreFoundation 15 - , gsettings-desktop-schemas 16 - , wrapGAppsHook3 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + makeFontsConf, 6 + cacert, 7 + cairo, 8 + coreutils, 9 + fontconfig, 10 + freefont_ttf, 11 + glib, 12 + gmp, 13 + gtk3, 14 + libedit, 15 + libffi, 16 + libiconv, 17 + libGL, 18 + libGLU, 19 + libjpeg, 20 + libpng, 21 + libtool, 22 + mpfr, 23 + openssl, 24 + pango, 25 + poppler, 26 + readline, 27 + sqlite, 28 + disableDocs ? false, 29 + CoreFoundation, 30 + gsettings-desktop-schemas, 31 + wrapGAppsHook3, 17 32 }: 18 33 19 34 let 20 35 21 - fontsConf = makeFontsConf { 22 - fontDirectories = [ freefont_ttf ]; 23 - }; 36 + fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; 24 37 25 38 libPath = lib.makeLibraryPath [ 26 39 cairo ··· 41 54 readline 42 55 sqlite 43 56 ]; 44 - 45 57 in 46 58 47 59 stdenv.mkDerivation rec { 48 60 pname = "racket"; 49 61 version = "7.9"; # always change at once with ./minimal.nix 50 62 51 - src = (lib.makeOverridable ({ name, sha256 }: 52 - fetchurl { 53 - url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz"; 54 - inherit sha256; 55 - } 56 - )) { 57 - name = "${pname}-${version}"; 58 - sha256 = "0gmp2ahmfd97nn9bwpfx9lznjmjkd042slnrrbdmyh59cqh98y2m"; 59 - }; 63 + src = 64 + (lib.makeOverridable ( 65 + { name, sha256 }: 66 + fetchurl { 67 + url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz"; 68 + inherit sha256; 69 + } 70 + )) 71 + { 72 + name = "${pname}-${version}"; 73 + sha256 = "0gmp2ahmfd97nn9bwpfx9lznjmjkd042slnrrbdmyh59cqh98y2m"; 74 + }; 60 75 61 76 FONTCONFIG_FILE = fontsConf; 62 77 LD_LIBRARY_PATH = libPath; 63 78 NIX_LDFLAGS = lib.concatStringsSep " " [ 64 - (lib.optionalString (stdenv.cc.isGNU && ! stdenv.isDarwin) "-lgcc_s") 79 + (lib.optionalString (stdenv.cc.isGNU && !stdenv.isDarwin) "-lgcc_s") 65 80 (lib.optionalString stdenv.isDarwin "-framework CoreFoundation") 66 81 ]; 67 82 68 - nativeBuildInputs = [ cacert wrapGAppsHook3 ]; 83 + nativeBuildInputs = [ 84 + cacert 85 + wrapGAppsHook3 86 + ]; 69 87 70 - buildInputs = [ fontconfig libffi libtool sqlite gsettings-desktop-schemas gtk3 ] 71 - ++ lib.optionals stdenv.isDarwin [ libiconv CoreFoundation ]; 88 + buildInputs = 89 + [ 90 + fontconfig 91 + libffi 92 + libtool 93 + sqlite 94 + gsettings-desktop-schemas 95 + gtk3 96 + ] 97 + ++ lib.optionals stdenv.isDarwin [ 98 + libiconv 99 + CoreFoundation 100 + ]; 72 101 73 102 preConfigure = '' 74 103 unset AR ··· 82 111 ''; 83 112 84 113 shared = if stdenv.isDarwin then "dylib" else "shared"; 85 - configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ] 86 - ++ lib.optionals disableDocs [ "--disable-docs" ] 87 - ++ lib.optionals stdenv.isDarwin [ "--enable-xonx" ]; 114 + configureFlags = 115 + [ 116 + "--enable-${shared}" 117 + "--enable-lt=${libtool}/bin/libtool" 118 + ] 119 + ++ lib.optionals disableDocs [ "--disable-docs" ] 120 + ++ lib.optionals stdenv.isDarwin [ "--enable-xonx" ]; 88 121 89 122 configureScript = "../configure"; 90 123 91 124 enableParallelBuilding = false; 92 - 93 125 94 126 meta = with lib; { 95 127 description = "A programmable programming language"; ··· 103 135 GUIs and charts. 104 136 ''; 105 137 homepage = "https://racket-lang.org/"; 106 - license = with licenses; [ asl20 /* or */ mit ]; 138 + license = with licenses; [ 139 + asl20 # or 140 + mit 141 + ]; 107 142 maintainers = with maintainers; [ vrthra ]; 108 - platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-linux" ]; 143 + platforms = [ 144 + "x86_64-darwin" 145 + "x86_64-linux" 146 + "aarch64-linux" 147 + ]; 109 148 broken = stdenv.isDarwin; # No support yet for setting FFI lookup path 110 149 }; 111 150 }