Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub 68e3ba2b b7aedf86

+464 -202
+42 -11
nixos/modules/installer/cd-dvd/iso-image.nix
··· 162 isolinuxCfg = concatStringsSep "\n" 163 ([ baseIsolinuxCfg ] ++ optional config.boot.loader.grub.memtest86.enable isolinuxMemtest86Entry); 164 165 # Setup instructions for rEFInd. 166 refind = 167 - if targetArch == "x64" then 168 '' 169 # Adds rEFInd to the ISO. 170 - cp -v ${pkgs.refind}/share/refind/refind_x64.efi $out/EFI/boot/ 171 '' 172 else 173 "# No refind for ${targetArch}" ··· 186 187 # Fonts can be loaded? 188 # (This font is assumed to always be provided as a fallback by NixOS) 189 - if loadfont (hd0)/EFI/boot/unicode.pf2; then 190 # Use graphical term, it can be either with background image or a theme. 191 # input is "console", while output is "gfxterm". 192 # This enables "serial" input and output only when possible. ··· 207 ${ # When there is a theme configured, use it, otherwise use the background image. 208 if config.isoImage.grubTheme != null then '' 209 # Sets theme. 210 - set theme=(hd0)/EFI/boot/grub-theme/theme.txt 211 # Load theme fonts 212 - $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont (hd0)/EFI/boot/grub-theme/%P\n") 213 '' else '' 214 - if background_image (hd0)/EFI/boot/efi-background.png; then 215 # Black background means transparent background when there 216 # is a background image set... This seems undocumented :( 217 set color_normal=black/black ··· 264 265 cat <<EOF > $out/EFI/boot/grub.cfg 266 267 # If you want to use serial for "terminal_*" commands, you need to set one up: 268 # Example manual configuration: 269 # → serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 ··· 273 export with_serial 274 clear 275 set timeout=10 276 ${grubMenuCfg} 277 278 # If the parameter iso_path is set, append the findiso parameter to the kernel 279 # line. We need this to allow the nixos iso to be booted from grub directly. 280 if [ \''${iso_path} ] ; then ··· 337 } 338 } 339 340 - menuentry 'rEFInd' --class refind { 341 - # UUID is hard-coded in the derivation. 342 - search --set=root --no-floppy --fs-uuid 1234-5678 343 - chainloader (\$root)/EFI/boot/refind_x64.efi 344 - } 345 menuentry 'Firmware Setup' --class settings { 346 fwsetup 347 clear
··· 162 isolinuxCfg = concatStringsSep "\n" 163 ([ baseIsolinuxCfg ] ++ optional config.boot.loader.grub.memtest86.enable isolinuxMemtest86Entry); 164 165 + refindBinary = if targetArch == "x64" || targetArch == "aa64" then "refind_${targetArch}.efi" else null; 166 + 167 # Setup instructions for rEFInd. 168 refind = 169 + if refindBinary != null then 170 '' 171 # Adds rEFInd to the ISO. 172 + cp -v ${pkgs.refind}/share/refind/${refindBinary} $out/EFI/boot/ 173 '' 174 else 175 "# No refind for ${targetArch}" ··· 188 189 # Fonts can be loaded? 190 # (This font is assumed to always be provided as a fallback by NixOS) 191 + if loadfont /EFI/boot/unicode.pf2; then 192 + set with_fonts=true 193 + fi 194 + if [ "\$textmode" != "true" -a "\$with_fonts" == "true" ]; then 195 # Use graphical term, it can be either with background image or a theme. 196 # input is "console", while output is "gfxterm". 197 # This enables "serial" input and output only when possible. ··· 212 ${ # When there is a theme configured, use it, otherwise use the background image. 213 if config.isoImage.grubTheme != null then '' 214 # Sets theme. 215 + set theme=/EFI/boot/grub-theme/theme.txt 216 # Load theme fonts 217 + $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont /EFI/boot/grub-theme/%P\n") 218 '' else '' 219 + if background_image /EFI/boot/efi-background.png; then 220 # Black background means transparent background when there 221 # is a background image set... This seems undocumented :( 222 set color_normal=black/black ··· 269 270 cat <<EOF > $out/EFI/boot/grub.cfg 271 272 + set with_fonts=false 273 + set textmode=false 274 # If you want to use serial for "terminal_*" commands, you need to set one up: 275 # Example manual configuration: 276 # → serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 ··· 280 export with_serial 281 clear 282 set timeout=10 283 + 284 + # This message will only be viewable when "gfxterm" is not used. 285 + echo "" 286 + echo "Loading graphical boot menu..." 287 + echo "" 288 + echo "Press 't' to use the text boot menu on this console..." 289 + echo "" 290 + 291 ${grubMenuCfg} 292 293 + hiddenentry 'Text mode' --hotkey 't' { 294 + loadfont /EFI/boot/unicode.pf2 295 + set textmode=true 296 + terminal_output gfxterm console 297 + } 298 + hiddenentry 'GUI mode' --hotkey 'g' { 299 + $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont /EFI/boot/grub-theme/%P\n") 300 + set textmode=false 301 + terminal_output gfxterm 302 + } 303 + 304 + 305 # If the parameter iso_path is set, append the findiso parameter to the kernel 306 # line. We need this to allow the nixos iso to be booted from grub directly. 307 if [ \''${iso_path} ] ; then ··· 364 } 365 } 366 367 + ${lib.optionalString (refindBinary != null) '' 368 + # GRUB apparently cannot do "chainloader" operations on "CD". 369 + if [ "\$root" != "cd0" ]; then 370 + menuentry 'rEFInd' --class refind { 371 + # \$root defaults to the drive the EFI is found on. 372 + chainloader (\$root)/EFI/boot/${refindBinary} 373 + } 374 + fi 375 + ''} 376 menuentry 'Firmware Setup' --class settings { 377 fwsetup 378 clear
+31 -8
pkgs/applications/audio/audacity/default.nix
··· 28 , ffmpeg 29 , soundtouch 30 , pcre /*, portaudio - given up fighting their portaudio.patch */ 31 , at-spi2-core ? null 32 , dbus ? null 33 , epoxy ? null ··· 41 }: 42 43 # TODO 44 - # - as of 2.4.2, GTK2 is still the recommended version ref https://www.audacityteam.org/download/source/ check if that changes in future versions 45 # - detach sbsms 46 47 stdenv.mkDerivation rec { 48 pname = "audacity"; 49 - version = "2.4.2"; 50 51 src = fetchFromGitHub { 52 owner = "audacity"; 53 repo = "audacity"; 54 rev = "Audacity-${version}"; 55 - sha256 = "sha256-hpRTo5B0EMyzORopsNPOgv6mohBkwJfWfCLnPvFmdFI="; 56 }; 57 58 patches = [ 59 (fetchpatch { 60 - url = "https://github.com/audacity/audacity/commit/a070b5d8a8ba10fb86edba6aeb8fdab0f66ba408.patch"; 61 - sha256 = "sha256-8UZupGcN+/tytAhyy5T1P0nufvsQPeyLgOUMGt7l8Oc="; 62 name = "audacity_xdg_paths.patch"; 63 }) 64 ]; ··· 66 # this file *should* be generated by cmake but as of 2.4.2 isn't yet 67 postPatch = '' 68 touch src/RevisionIdent.h 69 ''; 70 71 # workaround for a broken cmake. Drop it with a later version to see if it works. ··· 86 "-lswscale" 87 ]; 88 89 - nativeBuildInputs = [ cmake gettext pkg-config python3 ]; 90 91 buildInputs = [ 92 alsaLib ··· 110 sratom 111 suil 112 twolame 113 - wxGTK 114 - wxGTK.gtk 115 ] ++ lib.optionals stdenv.isLinux [ 116 at-spi2-core 117 dbus
··· 28 , ffmpeg 29 , soundtouch 30 , pcre /*, portaudio - given up fighting their portaudio.patch */ 31 + , linuxHeaders 32 , at-spi2-core ? null 33 , dbus ? null 34 , epoxy ? null ··· 42 }: 43 44 # TODO 45 + # - as of 3.0.2, GTK2 is still the recommended version ref https://www.audacityteam.org/download/source/ check if that changes in future versions 46 # - detach sbsms 47 48 + let 49 + wxGTK-audacity = wxGTK.overrideAttrs (oldAttrs: rec { 50 + src = fetchFromGitHub { 51 + owner = "audacity"; 52 + repo = "wxWidgets"; 53 + rev = "07e7d832c7a337aedba3537b90b2c98c4d8e2985"; 54 + sha256 = "1mawnkcrmqj98jp0jxlnh9xkc950ca033ccb51c7035pzmi9if9a"; 55 + fetchSubmodules = true; 56 + }; 57 + }); 58 + in 59 stdenv.mkDerivation rec { 60 pname = "audacity"; 61 + version = "3.0.2"; 62 63 src = fetchFromGitHub { 64 owner = "audacity"; 65 repo = "audacity"; 66 rev = "Audacity-${version}"; 67 + sha256 = "035qq2ff16cdl2cb9iply2bfjmhfl1dpscg79x6c9l0i9m8k41zj"; 68 }; 69 70 patches = [ 71 (fetchpatch { 72 + url = "https://github.com/audacity/audacity/commit/007852e51fcbb5f1f359d112f28b8984a604dac6.patch"; 73 + sha256 = "0zp2iydd46analda9cfnbmzdkjphz5m7dynrdj5qdnmq6j3px9fw"; 74 name = "audacity_xdg_paths.patch"; 75 }) 76 ]; ··· 78 # this file *should* be generated by cmake but as of 2.4.2 isn't yet 79 postPatch = '' 80 touch src/RevisionIdent.h 81 + ''; 82 + 83 + preConfigure = '' 84 + substituteInPlace src/FileNames.cpp --replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h 85 ''; 86 87 # workaround for a broken cmake. Drop it with a later version to see if it works. ··· 102 "-lswscale" 103 ]; 104 105 + nativeBuildInputs = [ 106 + cmake 107 + gettext 108 + pkg-config 109 + python3 110 + ] ++ lib.optionals stdenv.isLinux [ 111 + linuxHeaders 112 + ]; 113 114 buildInputs = [ 115 alsaLib ··· 133 sratom 134 suil 135 twolame 136 + wxGTK-audacity 137 + wxGTK-audacity.gtk 138 ] ++ lib.optionals stdenv.isLinux [ 139 at-spi2-core 140 dbus
+3 -3
pkgs/applications/misc/hugo/default.nix
··· 2 3 buildGoModule rec { 4 pname = "hugo"; 5 - version = "0.82.1"; 6 7 src = fetchFromGitHub { 8 owner = "gohugoio"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-6poWFcApwCos3XvS/Wq1VJyf5xTUWtqWNFXIhjNsXVs="; 12 }; 13 14 - vendorSha256 = "sha256-pJBm+yyy1DbH28oVBQA+PHSDtSg3RcgbRlurrwnnEls="; 15 16 doCheck = false; 17
··· 2 3 buildGoModule rec { 4 pname = "hugo"; 5 + version = "0.83.1"; 6 7 src = fetchFromGitHub { 8 owner = "gohugoio"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-c9T3a6J78uLumBTy/DgE4gbxCmEXVGKd9JyF9dyrL6g="; 12 }; 13 14 + vendorSha256 = "sha256-ddCyMmZ5RIZWzT2RYNnSW795oR7PIRudl3QTjsXtBGk="; 15 16 doCheck = false; 17
+3 -3
pkgs/applications/networking/syncthing/default.nix
··· 4 common = { stname, target, postInstall ? "" }: 5 buildGoModule rec { 6 pname = stname; 7 - version = "1.15.1"; 8 9 src = fetchFromGitHub { 10 owner = "syncthing"; 11 repo = "syncthing"; 12 rev = "v${version}"; 13 - sha256 = "sha256-d7b1hqW0ZWg74DyW1ZYMT7sIR7H89Ph38XE2Mhh7ySg="; 14 }; 15 16 - vendorSha256 = "sha256-00DdGJNCZ94Wj6yvVXJYNJZEiGxYbqTkX6wwon0O1tc="; 17 18 doCheck = false; 19
··· 4 common = { stname, target, postInstall ? "" }: 5 buildGoModule rec { 6 pname = stname; 7 + version = "1.16.0"; 8 9 src = fetchFromGitHub { 10 owner = "syncthing"; 11 repo = "syncthing"; 12 rev = "v${version}"; 13 + sha256 = "sha256-AAJLtykSQLM13I77E7LD1W8hXLvZQ3XqgOWrTBGYn3k="; 14 }; 15 16 + vendorSha256 = "sha256-cN6Dgztq0/pAwfuBGFtTzK7XKXV7LrkgDGGzjkTDUN8="; 17 18 doCheck = false; 19
+21 -11
pkgs/applications/version-management/sourcehut/builds.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 , buildGoModule 3 - , srht, redis, celery, pyyaml, markdown }: 4 - 5 let 6 - version = "0.63.4"; 7 8 buildWorker = src: buildGoModule { 9 inherit src version; 10 pname = "builds-sr-ht-worker"; 11 12 - vendorSha256 = "1sbcjp93gb0c4p7dd1gjhmhwr1pygxvrrzp954j2fvxvi38w6571"; 13 }; 14 - in buildPythonPackage rec { 15 inherit version; 16 pname = "buildsrht"; 17 18 - src = fetchgit { 19 - url = "https://git.sr.ht/~sircmpwn/builds.sr.ht"; 20 rev = version; 21 - sha256 = "1w3rb685nqg2h0k3ag681svc400si9r1gy0sdim3wa2qh8glbqni"; 22 }; 23 24 nativeBuildInputs = srht.nativeBuildInputs; ··· 29 celery 30 pyyaml 31 markdown 32 ]; 33 34 preBuild = '' 35 export PKGVER=${version} 36 ''; 37 38 postInstall = '' ··· 43 cp contrib/submit_image_build $out/bin/builds.sr.ht 44 cp ${buildWorker "${src}/worker"}/bin/worker $out/bin/builds.sr.ht-worker 45 ''; 46 - 47 - dontUseSetuptoolsCheck = true; 48 49 meta = with lib; { 50 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 , buildGoModule 5 + , srht 6 + , redis 7 + , celery 8 + , pyyaml 9 + , markdown 10 + , ansi2html 11 + , python 12 + }: 13 let 14 + version = "0.66.7"; 15 16 buildWorker = src: buildGoModule { 17 inherit src version; 18 pname = "builds-sr-ht-worker"; 19 20 + vendorSha256 = "sha256-giOaldV46aBqXyFH/cQVsbUr6Rb4VMhbBO86o48tRZY="; 21 }; 22 + in 23 + buildPythonPackage rec { 24 inherit version; 25 pname = "buildsrht"; 26 27 + src = fetchFromSourcehut { 28 + owner = "~sircmpwn"; 29 + repo = "builds.sr.ht"; 30 rev = version; 31 + sha256 = "sha256-2MLs/DOXHjEYarXDVUcPZe3o0fmZbzVxn528SE72lhM="; 32 }; 33 34 nativeBuildInputs = srht.nativeBuildInputs; ··· 39 celery 40 pyyaml 41 markdown 42 + ansi2html 43 ]; 44 45 preBuild = '' 46 export PKGVER=${version} 47 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 48 ''; 49 50 postInstall = '' ··· 55 cp contrib/submit_image_build $out/bin/builds.sr.ht 56 cp ${buildWorker "${src}/worker"}/bin/worker $out/bin/builds.sr.ht-worker 57 ''; 58 59 meta = with lib; { 60 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht";
+36 -9
pkgs/applications/version-management/sourcehut/core.nix
··· 1 - { lib, fetchgit, fetchNodeModules, buildPythonPackage 2 - , pgpy, flask, bleach, humanize, html5lib, markdown, psycopg2, pygments 3 - , requests, sqlalchemy, cryptography, beautifulsoup4, sqlalchemy-utils, prometheus_client 4 - , celery, alembic, importlib-metadata, mistletoe 5 - , sassc, nodejs 6 - , writeText }: 7 8 buildPythonPackage rec { 9 pname = "srht"; 10 - version = "0.65.2"; 11 12 src = fetchgit { 13 url = "https://git.sr.ht/~sircmpwn/core.sr.ht"; 14 rev = version; 15 - sha256 = "1jfp1vc8mink3c7ccacgnqx8hpkck82ipxiql38q1y9l8xcsah03"; 16 }; 17 18 node_modules = fetchNodeModules { 19 src = "${src}/srht"; 20 nodejs = nodejs; 21 - sha256 = "0gwa2xb75g7fclrsr7r131kj8ri5gmhd96yw1iws5pmgsn2rlqi1"; 22 }; 23 24 patches = [ ··· 34 pgpy 35 flask 36 bleach 37 humanize 38 html5lib 39 markdown ··· 51 celery 52 alembic 53 importlib-metadata 54 ]; 55 56 PKGVER = version;
··· 1 + { lib 2 + , fetchgit 3 + , fetchNodeModules 4 + , buildPythonPackage 5 + , pgpy 6 + , flask 7 + , bleach 8 + , misaka 9 + , humanize 10 + , html5lib 11 + , markdown 12 + , psycopg2 13 + , pygments 14 + , requests 15 + , sqlalchemy 16 + , cryptography 17 + , beautifulsoup4 18 + , sqlalchemy-utils 19 + , prometheus_client 20 + , celery 21 + , alembic 22 + , importlib-metadata 23 + , mistletoe 24 + , minio 25 + , sassc 26 + , nodejs 27 + , redis 28 + , writeText 29 + }: 30 31 buildPythonPackage rec { 32 pname = "srht"; 33 + version = "0.67.4"; 34 35 src = fetchgit { 36 url = "https://git.sr.ht/~sircmpwn/core.sr.ht"; 37 rev = version; 38 + sha256 = "sha256-XvzFfcBK5Mq8p7xEBAF/eupUE1kkUBh5k+ByM/WA9bc="; 39 + fetchSubmodules = true; 40 }; 41 42 node_modules = fetchNodeModules { 43 src = "${src}/srht"; 44 nodejs = nodejs; 45 + sha256 = "sha256-IWKahdWv3qJ5DNyb1GB9JWYkZxghn6wzZe68clYXij8="; 46 }; 47 48 patches = [ ··· 58 pgpy 59 flask 60 bleach 61 + misaka 62 humanize 63 html5lib 64 markdown ··· 76 celery 77 alembic 78 importlib-metadata 79 + minio 80 + redis 81 ]; 82 83 PKGVER = version;
+8 -5
pkgs/applications/version-management/sourcehut/default.nix
··· 1 - { python38, openssl 2 - , callPackage, recurseIntoAttrs }: 3 4 # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` 5 # Then we expose them through all-packages.nix as an application through `toPythonApplication` 6 # https://github.com/NixOS/nixpkgs/pull/54425#discussion_r250688781 7 - 8 let 9 fetchNodeModules = callPackage ./fetchNodeModules.nix { }; 10 11 - python = python38.override { 12 packageOverrides = self: super: { 13 srht = self.callPackage ./core.nix { inherit fetchNodeModules; }; 14 ··· 26 scmsrht = self.callPackage ./scm.nix { }; 27 }; 28 }; 29 - in with python.pkgs; recurseIntoAttrs { 30 inherit python; 31 buildsrht = toPythonApplication buildsrht; 32 dispatchsrht = toPythonApplication dispatchsrht;
··· 1 + { python3 2 + , openssl 3 + , callPackage 4 + , recurseIntoAttrs 5 + }: 6 7 # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` 8 # Then we expose them through all-packages.nix as an application through `toPythonApplication` 9 # https://github.com/NixOS/nixpkgs/pull/54425#discussion_r250688781 10 let 11 fetchNodeModules = callPackage ./fetchNodeModules.nix { }; 12 13 + python = python3.override { 14 packageOverrides = self: super: { 15 srht = self.callPackage ./core.nix { inherit fetchNodeModules; }; 16 ··· 28 scmsrht = self.callPackage ./scm.nix { }; 29 }; 30 }; 31 + in 32 + with python.pkgs; recurseIntoAttrs { 33 inherit python; 34 buildsrht = toPythonApplication buildsrht; 35 dispatchsrht = toPythonApplication dispatchsrht;
+14 -8
pkgs/applications/version-management/sourcehut/dispatch.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, pyyaml, PyGithub }: 3 4 buildPythonPackage rec { 5 pname = "dispatchsrht"; 6 - version = "0.14.9"; 7 8 - src = fetchgit { 9 - url = "https://git.sr.ht/~sircmpwn/dispatch.sr.ht"; 10 rev = version; 11 - sha256 = "JUffuJTKY4I8CrJc8tJWL+CbJCZtiqtUSO9SgYoeux0="; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs; ··· 21 22 preBuild = '' 23 export PKGVER=${version} 24 ''; 25 - 26 - dontUseSetuptoolsCheck = true; 27 28 meta = with lib; { 29 homepage = "https://dispatch.sr.ht/~sircmpwn/dispatch.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , pyyaml 6 + , PyGithub 7 + , python 8 + }: 9 10 buildPythonPackage rec { 11 pname = "dispatchsrht"; 12 + version = "0.15.8"; 13 14 + src = fetchFromSourcehut { 15 + owner = "~sircmpwn"; 16 + repo = "dispatch.sr.ht"; 17 rev = version; 18 + sha256 = "sha256-zWCGPjIgMKHXHJUs9aciV7IFgo0rpahon6KXHDwcfss="; 19 }; 20 21 nativeBuildInputs = srht.nativeBuildInputs; ··· 28 29 preBuild = '' 30 export PKGVER=${version} 31 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 32 ''; 33 34 meta = with lib; { 35 homepage = "https://dispatch.sr.ht/~sircmpwn/dispatch.sr.ht";
+28 -24
pkgs/applications/version-management/sourcehut/git.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 , buildGoModule 3 - , srht, minio, pygit2, scmsrht }: 4 - 5 let 6 - version = "0.61.10"; 7 8 buildShell = src: buildGoModule { 9 inherit src version; 10 pname = "gitsrht-shell"; 11 - vendorSha256 = "1abyv2s5l3bs0iylpgyj3jri2hh1iy8fiadxm7g6l2vl58h0b9ba"; 12 }; 13 14 buildDispatcher = src: buildGoModule { 15 inherit src version; 16 pname = "gitsrht-dispatcher"; 17 - vendorSha256 = "1lzkf13m54pq0gnn3bcxc80nfg76hgck4l8q8jpaicrsiwgcyrd9"; 18 }; 19 20 buildKeys = src: buildGoModule { ··· 29 vendorSha256 = "0fwzqpjv8x5y3w3bfjd0x0cvqjjak23m0zj88hf32jpw49xmjkih"; 30 }; 31 32 - buildAPI = src: buildGoModule { 33 - inherit src version; 34 - pname = "gitsrht-api"; 35 - vendorSha256 = "0d6kmsbsgj2q5nddx4w675zbsiarffj9vqplwvqk7dwz4id2wnif"; 36 - }; 37 - in buildPythonPackage rec { 38 - pname = "gitsrht"; 39 - inherit version; 40 41 - src = fetchgit { 42 - url = "https://git.sr.ht/~sircmpwn/git.sr.ht"; 43 - rev = version; 44 - sha256 = "0g7aj5wlns0m3kf2aajqjjb5fwk5vbb8frrkdfp4118235h3xcqy"; 45 - }; 46 47 nativeBuildInputs = srht.nativeBuildInputs; 48 49 propagatedBuildInputs = [ 50 srht 51 - minio 52 pygit2 53 scmsrht 54 ]; 55 56 preBuild = '' 57 export PKGVER=${version} 58 ''; 59 60 postInstall = '' ··· 62 cp ${buildShell "${src}/gitsrht-shell"}/bin/gitsrht-shell $out/bin/gitsrht-shell 63 cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch 64 cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys 65 - cp ${buildUpdateHook "${src}/gitsrht-update-hook"}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook 66 - cp ${buildAPI "${src}/api"}/bin/api $out/bin/gitsrht-api 67 ''; 68 - 69 - dontUseSetuptoolsCheck = true; 70 71 meta = with lib; { 72 homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 , buildGoModule 5 + , python 6 + , srht 7 + , pygit2 8 + , scmsrht 9 + }: 10 let 11 + version = "0.72.8"; 12 + 13 + src = fetchFromSourcehut { 14 + owner = "~sircmpwn"; 15 + repo = "git.sr.ht"; 16 + rev = version; 17 + sha256 = "sha256-AB2uzajO5PtcpJfbOOTfuDFM6is5K39v3AZJ1hShRNc="; 18 + }; 19 20 buildShell = src: buildGoModule { 21 inherit src version; 22 pname = "gitsrht-shell"; 23 + vendorSha256 = "sha256-aqUFICp0C2reqb2p6JCPAUIRsxzSv0t9BHoNWrTYfqk="; 24 }; 25 26 buildDispatcher = src: buildGoModule { 27 inherit src version; 28 pname = "gitsrht-dispatcher"; 29 + vendorSha256 = "sha256-qWXPHo86s6iuRBhRMtmD5jxnAWKdrWHtA/iSUkdw89M="; 30 }; 31 32 buildKeys = src: buildGoModule { ··· 41 vendorSha256 = "0fwzqpjv8x5y3w3bfjd0x0cvqjjak23m0zj88hf32jpw49xmjkih"; 42 }; 43 44 + updateHook = buildUpdateHook "${src}/gitsrht-update-hook"; 45 46 + in 47 + buildPythonPackage rec { 48 + inherit src version; 49 + pname = "gitsrht"; 50 51 nativeBuildInputs = srht.nativeBuildInputs; 52 53 propagatedBuildInputs = [ 54 srht 55 pygit2 56 scmsrht 57 ]; 58 59 preBuild = '' 60 export PKGVER=${version} 61 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 62 ''; 63 64 postInstall = '' ··· 66 cp ${buildShell "${src}/gitsrht-shell"}/bin/gitsrht-shell $out/bin/gitsrht-shell 67 cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch 68 cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys 69 + cp ${updateHook}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook 70 ''; 71 + passthru = { 72 + inherit updateHook; 73 + }; 74 75 meta = with lib; { 76 homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
+12 -6
pkgs/applications/version-management/sourcehut/hg.nix
··· 1 - { lib, fetchhg, buildPythonPackage 2 - , srht, hglib, scmsrht, unidiff }: 3 4 buildPythonPackage rec { 5 pname = "hgsrht"; 6 - version = "0.26.19"; 7 8 src = fetchhg { 9 url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht"; 10 rev = version; 11 - sha256 = "0dc0lgqq8zdaywbd50dlxypk1lv0nffvqr3889v10ycy45qcfymv"; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs; ··· 22 23 preBuild = '' 24 export PKGVER=${version} 25 ''; 26 - 27 - dontUseSetuptoolsCheck = true; 28 29 meta = with lib; { 30 homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
··· 1 + { lib 2 + , fetchhg 3 + , buildPythonPackage 4 + , srht 5 + , hglib 6 + , scmsrht 7 + , unidiff 8 + , python 9 + }: 10 11 buildPythonPackage rec { 12 pname = "hgsrht"; 13 + version = "0.27.4"; 14 15 src = fetchhg { 16 url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht"; 17 rev = version; 18 + sha256 = "1c0qfi0gmbfngvds6917fy9ii2iglawn429757rh7b4bvzn7n6mr"; 19 }; 20 21 nativeBuildInputs = srht.nativeBuildInputs; ··· 29 30 preBuild = '' 31 export PKGVER=${version} 32 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 33 ''; 34 35 meta = with lib; { 36 homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
+10 -6
pkgs/applications/version-management/sourcehut/hub.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht }: 3 4 buildPythonPackage rec { 5 pname = "hubsrht"; 6 - version = "0.11.5"; 7 8 - src = fetchgit { 9 - url = "https://git.sr.ht/~sircmpwn/hub.sr.ht"; 10 rev = version; 11 - sha256 = "0cysdfy1z69jaizblbq0ywpcvcnx57rlzg42k98kd9w2mqzj5173"; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs;
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + }: 6 7 buildPythonPackage rec { 8 pname = "hubsrht"; 9 + version = "0.13.1"; 10 11 + src = fetchFromSourcehut { 12 + owner = "~sircmpwn"; 13 + repo = "hub.sr.ht"; 14 rev = version; 15 + sha256 = "sha256-Kqzy4mh5Nn1emzHBco/LVuXro/tW3NX+OYqdEwBSQ/U="; 16 }; 17 18 nativeBuildInputs = srht.nativeBuildInputs;
+18 -8
pkgs/applications/version-management/sourcehut/lists.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, asyncpg, aiosmtpd, pygit2, emailthreads }: 3 4 buildPythonPackage rec { 5 pname = "listssrht"; 6 - version = "0.45.15"; 7 8 - src = fetchgit { 9 - url = "https://git.sr.ht/~sircmpwn/lists.sr.ht"; 10 rev = version; 11 - sha256 = "0f3yl5nf385j7mhcrmda7zk58i1y6fm00i479js90xxhjifmqkq6"; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs; ··· 19 asyncpg 20 aiosmtpd 21 emailthreads 22 ]; 23 24 preBuild = '' 25 export PKGVER=${version} 26 ''; 27 - 28 - dontUseSetuptoolsCheck = true; 29 30 meta = with lib; { 31 homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , asyncpg 6 + , aiosmtpd 7 + , pygit2 8 + , emailthreads 9 + , redis 10 + , python 11 + }: 12 13 buildPythonPackage rec { 14 pname = "listssrht"; 15 + version = "0.48.19"; 16 17 + src = fetchFromSourcehut { 18 + owner = "~sircmpwn"; 19 + repo = "lists.sr.ht"; 20 rev = version; 21 + sha256 = "sha256-bsakEMyvWaxiE4/SGcAP4mlGG9jkdHfFxpt9H+TJn/8="; 22 }; 23 24 nativeBuildInputs = srht.nativeBuildInputs; ··· 29 asyncpg 30 aiosmtpd 31 emailthreads 32 + redis 33 ]; 34 35 preBuild = '' 36 export PKGVER=${version} 37 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 38 ''; 39 40 meta = with lib; { 41 homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
+13 -8
pkgs/applications/version-management/sourcehut/man.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, pygit2 }: 3 4 buildPythonPackage rec { 5 pname = "mansrht"; 6 - version = "0.15.4"; 7 8 - src = fetchgit { 9 - url = "https://git.sr.ht/~sircmpwn/man.sr.ht"; 10 rev = version; 11 - sha256 = "0spi0yy2myxw4kggy54yskda14c4vaq2ng9dd9krqsajnsy7anrw"; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs; ··· 20 21 preBuild = '' 22 export PKGVER=${version} 23 ''; 24 - 25 - dontUseSetuptoolsCheck = true; 26 27 meta = with lib; { 28 homepage = "https://git.sr.ht/~sircmpwn/man.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , pygit2 6 + , python 7 + }: 8 9 buildPythonPackage rec { 10 pname = "mansrht"; 11 + version = "0.15.12"; 12 13 + src = fetchFromSourcehut { 14 + owner = "~sircmpwn"; 15 + repo = "man.sr.ht"; 16 rev = version; 17 + sha256 = "sha256-MqH/8K9XRvEg6P7GHE6XXtWnhDP3wT8iGoNaFtYQbio="; 18 }; 19 20 nativeBuildInputs = srht.nativeBuildInputs; ··· 26 27 preBuild = '' 28 export PKGVER=${version} 29 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 30 ''; 31 32 meta = with lib; { 33 homepage = "https://git.sr.ht/~sircmpwn/man.sr.ht";
+36 -19
pkgs/applications/version-management/sourcehut/meta.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 , buildGoModule 3 - , pgpy, srht, redis, bcrypt, qrcode, stripe, zxcvbn, alembic, pystache 4 - , sshpubkeys, weasyprint }: 5 6 - let 7 - version = "0.51.2"; 8 9 - buildAPI = src: buildGoModule { 10 inherit src version; 11 pname = "metasrht-api"; 12 - 13 - vendorSha256 = "0k7i7j604wqvzjavmcsw7g2x059jkkgrgz1qyvzlqc0y4ws59xkq"; 14 }; 15 - in buildPythonPackage rec { 16 pname = "metasrht"; 17 - inherit version; 18 - 19 - src = fetchgit { 20 - url = "https://git.sr.ht/~sircmpwn/meta.sr.ht"; 21 - rev = version; 22 - sha256 = "0c9y1hzx3dj0awxrhkzrcsmy6q9fqm6v6dbp9y1ria3v47xa3nv7"; 23 - }; 24 25 nativeBuildInputs = srht.nativeBuildInputs; 26 ··· 36 pystache 37 sshpubkeys 38 weasyprint 39 ]; 40 41 preBuild = '' 42 export PKGVER=${version} 43 ''; 44 45 postInstall = '' 46 mkdir -p $out/bin 47 - cp ${buildAPI "${src}/api"}/bin/api $out/bin/metasrht-api 48 ''; 49 - 50 - dontUseSetuptoolsCheck = true; 51 52 meta = with lib; { 53 homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 , buildGoModule 5 + , pgpy 6 + , srht 7 + , redis 8 + , bcrypt 9 + , qrcode 10 + , stripe 11 + , zxcvbn 12 + , alembic 13 + , pystache 14 + , dnspython 15 + , sshpubkeys 16 + , weasyprint 17 + , prometheus_client 18 + , python 19 + }: 20 + let 21 + version = "0.53.14"; 22 23 + src = fetchFromSourcehut { 24 + owner = "~sircmpwn"; 25 + repo = "meta.sr.ht"; 26 + rev = version; 27 + sha256 = "sha256-/+r/XLDkcSTW647xPMh5bcJmR2xZNNH74AJ5jemna2k="; 28 + }; 29 30 + buildApi = src: buildGoModule { 31 inherit src version; 32 pname = "metasrht-api"; 33 + vendorSha256 = "sha256-eZyDrr2VcNMxI++18qUy7LA1Q1YDlWCoRtl00L8lfR4="; 34 }; 35 + 36 + in 37 + buildPythonPackage rec { 38 pname = "metasrht"; 39 + inherit version src; 40 41 nativeBuildInputs = srht.nativeBuildInputs; 42 ··· 52 pystache 53 sshpubkeys 54 weasyprint 55 + prometheus_client 56 + dnspython 57 ]; 58 59 preBuild = '' 60 export PKGVER=${version} 61 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 62 ''; 63 64 postInstall = '' 65 mkdir -p $out/bin 66 + cp ${buildApi "${src}/api/"}/bin/api $out/bin/metasrht-api 67 ''; 68 69 meta = with lib; { 70 homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
+13 -8
pkgs/applications/version-management/sourcehut/paste.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, pyyaml }: 3 4 buildPythonPackage rec { 5 pname = "pastesrht"; 6 - version = "0.11.2"; 7 8 - src = fetchgit { 9 - url = "https://git.sr.ht/~sircmpwn/paste.sr.ht"; 10 rev = version; 11 - sha256 = "15hm5165v8a7ryw6i0vlf189slw4rp22cfgzznih18pbml7d0c8s"; 12 }; 13 14 nativeBuildInputs = srht.nativeBuildInputs; ··· 20 21 preBuild = '' 22 export PKGVER=${version} 23 ''; 24 - 25 - dontUseSetuptoolsCheck = true; 26 27 meta = with lib; { 28 homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , pyyaml 6 + , python 7 + }: 8 9 buildPythonPackage rec { 10 pname = "pastesrht"; 11 + version = "0.12.1"; 12 13 + src = fetchFromSourcehut { 14 + owner = "~sircmpwn"; 15 + repo = "paste.sr.ht"; 16 rev = version; 17 + sha256 = "sha256-QQhd2LeH9BLmlHilhsv+9fZ+RPNmEMSmOpFA3dsMBFc="; 18 }; 19 20 nativeBuildInputs = srht.nativeBuildInputs; ··· 26 27 preBuild = '' 28 export PKGVER=${version} 29 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 30 ''; 31 32 meta = with lib; { 33 homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
+14 -7
pkgs/applications/version-management/sourcehut/scm.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, redis, pyyaml, buildsrht 3 - , writeText }: 4 5 buildPythonPackage rec { 6 pname = "scmsrht"; 7 - version = "0.22.4"; 8 9 - src = fetchgit { 10 - url = "https://git.sr.ht/~sircmpwn/scm.sr.ht"; 11 rev = version; 12 - sha256 = "1djyrwa44wml9lj3njy6qbxyc3g1msswbh0y9jyjzxh2c02bl3jn"; 13 }; 14 15 nativeBuildInputs = srht.nativeBuildInputs;
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , redis 6 + , pyyaml 7 + , buildsrht 8 + , writeText 9 + }: 10 11 buildPythonPackage rec { 12 pname = "scmsrht"; 13 + version = "0.22.9"; 14 15 + src = fetchFromSourcehut { 16 + owner = "~sircmpwn"; 17 + repo = "scm.sr.ht"; 18 rev = version; 19 + sha256 = "sha256-327G6C8FW+iZx+167D7TQsFtV6FGc8MpMVo9L/cUUqU="; 20 }; 21 22 nativeBuildInputs = srht.nativeBuildInputs;
+17 -7
pkgs/applications/version-management/sourcehut/todo.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 - , srht, redis, alembic, pystache 3 - , pytest, factory_boy }: 4 5 buildPythonPackage rec { 6 pname = "todosrht"; 7 - version = "0.62.1"; 8 9 - src = fetchgit { 10 - url = "https://git.sr.ht/~sircmpwn/todo.sr.ht"; 11 rev = version; 12 - sha256 = "17fsv2z37sjzqzpvx39nc36xln1ayivzjg309d2vmb94aaym4nz2"; 13 }; 14 15 nativeBuildInputs = srht.nativeBuildInputs; ··· 23 24 preBuild = '' 25 export PKGVER=${version} 26 ''; 27 28 # pytest tests fail
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 + , srht 5 + , redis 6 + , alembic 7 + , pystache 8 + , pytest 9 + , factory_boy 10 + , python 11 + }: 12 13 buildPythonPackage rec { 14 pname = "todosrht"; 15 + version = "0.64.14"; 16 17 + src = fetchFromSourcehut { 18 + owner = "~sircmpwn"; 19 + repo = "todo.sr.ht"; 20 rev = version; 21 + sha256 = "sha256-huIAhn6h1F5w5ST4/yBwr82kAzyYwhLu+gpRuOQgnsE="; 22 }; 23 24 nativeBuildInputs = srht.nativeBuildInputs; ··· 32 33 preBuild = '' 34 export PKGVER=${version} 35 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 36 ''; 37 38 # pytest tests fail
+51 -14
pkgs/applications/window-managers/cagebreak/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 - , meson, ninja, pkg-config, wayland, scdoc, makeWrapper 3 - , wlroots, wayland-protocols, pixman, libxkbcommon 4 - , cairo , pango, fontconfig, pandoc, systemd, mesa 5 - , withXwayland ? true, xwayland 6 , nixosTests 7 }: 8 9 stdenv.mkDerivation rec { 10 pname = "cagebreak"; 11 - version = "1.6.0"; 12 13 src = fetchFromGitHub { 14 owner = "project-repo"; 15 - repo = "cagebreak"; 16 rev = version; 17 - hash = "sha256-F7fqDVbJS6pVgmj6C1/l9PAaz5yzcYpaq6oc6a6v/Qk="; 18 }; 19 20 - nativeBuildInputs = [ meson ninja pkg-config wayland scdoc makeWrapper ]; 21 22 buildInputs = [ 23 - wlroots wayland wayland-protocols pixman libxkbcommon cairo 24 - pango fontconfig pandoc systemd 25 mesa # for libEGL headers 26 ]; 27 28 - outputs = [ "out" "contrib" ]; 29 30 mesonFlags = [ 31 - "-Dxwayland=${lib.boolToString withXwayland}" 32 - "-Dversion_override=${version}" 33 "-Dman-pages=true" 34 ]; 35 36 postInstall = '' 37 mkdir -p $contrib/share/cagebreak
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cairo 5 + , fontconfig 6 + , libxkbcommon 7 + , makeWrapper 8 + , mesa 9 + , meson 10 + , ninja 11 , nixosTests 12 + , pandoc 13 + , pango 14 + , pixman 15 + , pkg-config 16 + , scdoc 17 + , systemd 18 + , wayland 19 + , wayland-protocols 20 + , withXwayland ? true , xwayland 21 + , wlroots 22 }: 23 24 stdenv.mkDerivation rec { 25 pname = "cagebreak"; 26 + version = "1.7.0"; 27 28 src = fetchFromGitHub { 29 owner = "project-repo"; 30 + repo = pname; 31 rev = version; 32 + hash = "sha256-HpAjJHu5sxZKof3ydnU3wcP5GpnH6Ax8m1T1vVoq+oI="; 33 }; 34 35 + nativeBuildInputs = [ 36 + makeWrapper 37 + meson 38 + ninja 39 + pandoc 40 + pkg-config 41 + scdoc 42 + wayland 43 + ]; 44 45 buildInputs = [ 46 + cairo 47 + fontconfig 48 + libxkbcommon 49 mesa # for libEGL headers 50 + pango 51 + pixman 52 + systemd 53 + wayland 54 + wayland-protocols 55 + wlroots 56 ]; 57 58 + outputs = [ 59 + "out" 60 + "contrib" 61 + ]; 62 63 mesonFlags = [ 64 "-Dman-pages=true" 65 + "-Dversion_override=${version}" 66 + "-Dxwayland=${lib.boolToString withXwayland}" 67 ]; 68 + 69 + postPatch = '' 70 + sed -i -e 's|<drm_fourcc.h>|<libdrm/drm_fourcc.h>|' *.c 71 + ''; 72 73 postInstall = '' 74 mkdir -p $contrib/share/cagebreak
+2 -2
pkgs/development/libraries/qscintilla/default.nix
··· 6 7 let 8 pname = "qscintilla-qt${if withQt5 then "5" else "4"}"; 9 - version = "2.11.5"; 10 11 in stdenv.mkDerivation rec { 12 inherit pname version; 13 14 src = fetchurl { 15 url = "https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla-${version}.tar.gz"; 16 - sha256 = "k2Hib9f7e1gZp+uSxcGIChjem9PtndLrAI5XOIaWcWs="; 17 }; 18 19 sourceRoot = "QScintilla-${version}/Qt4Qt5";
··· 6 7 let 8 pname = "qscintilla-qt${if withQt5 then "5" else "4"}"; 9 + version = "2.11.6"; 10 11 in stdenv.mkDerivation rec { 12 inherit pname version; 13 14 src = fetchurl { 15 url = "https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla-${version}.tar.gz"; 16 + sha256 = "5zRgV9tH0vs4RGf6/M/LE6oHQTc8XVk7xytVsvDdIKc="; 17 }; 18 19 sourceRoot = "QScintilla-${version}/Qt4Qt5";
+7 -3
pkgs/development/libraries/xdg-desktop-portal-wlr/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 , meson, ninja, pkg-config, wayland-protocols 3 - , pipewire, wayland, systemd, libdrm, iniparser, scdoc }: 4 5 stdenv.mkDerivation rec { 6 pname = "xdg-desktop-portal-wlr"; ··· 13 sha256 = "sha256-6ArUQfWx5rNdpsd8Q22MqlpxLT8GTSsymAf21zGe1KI="; 14 }; 15 16 - nativeBuildInputs = [ meson ninja pkg-config wayland-protocols ]; 17 buildInputs = [ pipewire wayland systemd libdrm iniparser scdoc ]; 18 19 mesonFlags = [ 20 "-Dsd-bus-provider=libsystemd" 21 ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/emersion/xdg-desktop-portal-wlr";
··· 1 + { lib, stdenv, fetchFromGitHub, makeWrapper 2 , meson, ninja, pkg-config, wayland-protocols 3 + , pipewire, wayland, systemd, libdrm, iniparser, scdoc, grim }: 4 5 stdenv.mkDerivation rec { 6 pname = "xdg-desktop-portal-wlr"; ··· 13 sha256 = "sha256-6ArUQfWx5rNdpsd8Q22MqlpxLT8GTSsymAf21zGe1KI="; 14 }; 15 16 + nativeBuildInputs = [ meson ninja pkg-config wayland-protocols makeWrapper ]; 17 buildInputs = [ pipewire wayland systemd libdrm iniparser scdoc ]; 18 19 mesonFlags = [ 20 "-Dsd-bus-provider=libsystemd" 21 ]; 22 + 23 + postInstall = '' 24 + wrapProgram $out/libexec/xdg-desktop-portal-wlr --prefix PATH ":" ${lib.makeBinPath [ grim ]} 25 + ''; 26 27 meta = with lib; { 28 homepage = "https://github.com/emersion/xdg-desktop-portal-wlr";
+4 -8
pkgs/development/python-modules/aiodiscover/default.nix
··· 1 { lib 2 - , async-dns 3 , buildPythonPackage 4 , fetchFromGitHub 5 , ifaddr 6 , pyroute2 ··· 11 12 buildPythonPackage rec { 13 pname = "aiodiscover"; 14 - version = "1.3.4"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "bdraco"; 19 repo = pname; 20 rev = "v${version}"; 21 - sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag="; 22 }; 23 24 propagatedBuildInputs = [ 25 - async-dns 26 pyroute2 27 ifaddr 28 ]; ··· 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 - 39 - preBuild = '' 40 - export HOME=$TMPDIR 41 - ''; 42 43 disabledTests = [ 44 # Tests require access to /etc/resolv.conf
··· 1 { lib 2 , buildPythonPackage 3 + , dnspython 4 , fetchFromGitHub 5 , ifaddr 6 , pyroute2 ··· 11 12 buildPythonPackage rec { 13 pname = "aiodiscover"; 14 + version = "1.4.0"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "bdraco"; 19 repo = pname; 20 rev = "v${version}"; 21 + sha256 = "sha256-t0bs3n0eLUR22i1lZkepCffjiUFzvXBdP7Xq49KXeS4="; 22 }; 23 24 propagatedBuildInputs = [ 25 + dnspython 26 pyroute2 27 ifaddr 28 ]; ··· 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 disabledTests = [ 40 # Tests require access to /etc/resolv.conf
+3
pkgs/development/tools/misc/hydra/common.nix
··· 37 CatalystViewTT 38 CatalystXScriptServerStarman 39 CatalystXRoleApplicator 40 CryptRandPasswd 41 DBDPg 42 DBDSQLite ··· 61 SQLSplitStatement 62 SetScalar 63 Starman 64 SysHostnameLong 65 TermSizeAny 66 TextDiff
··· 37 CatalystViewTT 38 CatalystXScriptServerStarman 39 CatalystXRoleApplicator 40 + CryptPassphrase 41 + CryptPassphraseArgon2 42 CryptRandPasswd 43 DBDPg 44 DBDSQLite ··· 63 SQLSplitStatement 64 SetScalar 65 Starman 66 + StringCompareConstantTime 67 SysHostnameLong 68 TermSizeAny 69 TextDiff
+3 -3
pkgs/development/tools/misc/hydra/default.nix
··· 2 3 { 4 hydra-unstable = callPackage ./common.nix { 5 - version = "2021-04-29"; 6 src = fetchFromGitHub { 7 owner = "NixOS"; 8 repo = "hydra"; 9 - rev = "6047b1dd04d44acff9343b6b971ab609b73099d5"; 10 - sha256 = "sha256-E7JOHhSd4gIzE6FvSZVMxZE9WagbBkrfZVoibkanaYE="; 11 }; 12 nix = nixFlakes; 13
··· 2 3 { 4 hydra-unstable = callPackage ./common.nix { 5 + version = "2021-05-03"; 6 src = fetchFromGitHub { 7 owner = "NixOS"; 8 repo = "hydra"; 9 + rev = "886e6f85e45a1f757e9b77d2a9e4539fbde29468"; 10 + sha256 = "t7Qb57Xjc0Ou+VDGC1N5u9AmeODW6MVOwKSrYRJq5f0="; 11 }; 12 nix = nixFlakes; 13
+2 -2
pkgs/misc/vscode-extensions/default.nix
··· 444 mktplcRef = { 445 name = "github-vscode-theme"; 446 publisher = "github"; 447 - version = "4.0.2"; 448 - sha256 = "06mysdwjh7km874rrk0xc0xxaqx15b4a7x1i8dly440h8w3ng5bs"; 449 }; 450 meta = with lib; { 451 description = "GitHub theme for VS Code";
··· 444 mktplcRef = { 445 name = "github-vscode-theme"; 446 publisher = "github"; 447 + version = "4.1.1"; 448 + sha256 = "14wz2b0bn1rnmpj28c0mivz2gacla2dgg8ncv7qfx9bsxhf95g68"; 449 }; 450 meta = with lib; { 451 description = "GitHub theme for VS Code";
+3 -3
pkgs/servers/misc/gobgpd/default.nix
··· 2 3 buildGoModule rec { 4 pname = "gobgpd"; 5 - version = "2.26.0"; 6 7 src = fetchFromGitHub { 8 owner = "osrg"; 9 repo = "gobgp"; 10 rev = "v${version}"; 11 - sha256 = "10fq74hv3vmcq58i3w67ic370925vl9wl6khcmy3f2vg60i962di"; 12 }; 13 14 - vendorSha256 = "0dmd4r6x76jn8pyvp47x4llzc2wij5m9lchgyaagcb5sfdgbns9x"; 15 16 postConfigure = '' 17 export CGO_ENABLED=0
··· 2 3 buildGoModule rec { 4 pname = "gobgpd"; 5 + version = "2.27.0"; 6 7 src = fetchFromGitHub { 8 owner = "osrg"; 9 repo = "gobgp"; 10 rev = "v${version}"; 11 + sha256 = "sha256-Ofg+z8wUttqM1THatPFi0cuyLSEryhTmg3JC1o+16eA="; 12 }; 13 14 + vendorSha256 = "sha256-PWm7XnO6LPaU8g8ymmqRkQv2KSX9kLv9RVaa000mrTY="; 15 16 postConfigure = '' 17 export CGO_ENABLED=0
+8
pkgs/tools/misc/grub/2.0x.nix
··· 1 { lib, stdenv, fetchgit, flex, bison, python3, autoconf, automake, gnulib, libtool 2 , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config 3 , buildPackages 4 , nixosTests 5 , fuse # only needed for grub-mount 6 , runtimeShell ··· 55 56 patches = [ 57 ./fix-bash-completion.patch 58 ]; 59 60 postPatch = if kbdcompSupport then ''
··· 1 { lib, stdenv, fetchgit, flex, bison, python3, autoconf, automake, gnulib, libtool 2 , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config 3 , buildPackages 4 + , fetchpatch 5 + , pkgsBuildBuild 6 , nixosTests 7 , fuse # only needed for grub-mount 8 , runtimeShell ··· 57 58 patches = [ 59 ./fix-bash-completion.patch 60 + (fetchpatch { 61 + name = "Add-hidden-menu-entries.patch"; 62 + # https://lists.gnu.org/archive/html/grub-devel/2016-04/msg00089.html 63 + url = "https://marc.info/?l=grub-devel&m=146193404929072&q=mbox"; 64 + sha256 = "00wa1q5adiass6i0x7p98vynj9vsz1w0gn1g4dgz89v35mpyw2bi"; 65 + }) 66 ]; 67 68 postPatch = if kbdcompSupport then ''
+2 -2
pkgs/tools/networking/gobgp/default.nix
··· 2 3 buildGoModule rec { 4 pname = "gobgp"; 5 - version = "2.26.0"; 6 7 src = fetchFromGitHub { 8 owner = "osrg"; 9 repo = "gobgp"; 10 rev = "v${version}"; 11 - sha256 = "sha256-sQmTIjBvCzd8ZXAayhPdRSRwBovH8BFRwazusSE52IE="; 12 }; 13 14 vendorSha256 = "sha256-PWm7XnO6LPaU8g8ymmqRkQv2KSX9kLv9RVaa000mrTY=";
··· 2 3 buildGoModule rec { 4 pname = "gobgp"; 5 + version = "2.27.0"; 6 7 src = fetchFromGitHub { 8 owner = "osrg"; 9 repo = "gobgp"; 10 rev = "v${version}"; 11 + sha256 = "sha256-Ofg+z8wUttqM1THatPFi0cuyLSEryhTmg3JC1o+16eA="; 12 }; 13 14 vendorSha256 = "sha256-PWm7XnO6LPaU8g8ymmqRkQv2KSX9kLv9RVaa000mrTY=";
+4 -8
pkgs/tools/networking/tcpreplay/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "tcpreplay"; 5 - version = "4.3.3"; 6 7 src = fetchurl { 8 url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz"; 9 - sha256 = "1plgjm3dr9rr5q71s7paqk2wgrvkihbk2yrf9g3zaks3m750497d"; 10 }; 11 12 buildInputs = [ libpcap ] ··· 27 28 meta = with lib; { 29 description = "A suite of utilities for editing and replaying network traffic"; 30 - homepage = "http://tcpreplay.appneta.com/"; 31 - license = with licenses; [ bsd3 gpl3 ]; 32 maintainers = with maintainers; [ eleanor ]; 33 platforms = platforms.unix; 34 - knownVulnerabilities = [ 35 - "CVE-2020-24265" # https://github.com/appneta/tcpreplay/issues/616 36 - "CVE-2020-24266" # https://github.com/appneta/tcpreplay/issues/617 37 - ]; 38 }; 39 }
··· 2 3 stdenv.mkDerivation rec { 4 pname = "tcpreplay"; 5 + version = "4.3.4"; 6 7 src = fetchurl { 8 url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz"; 9 + sha256 = "sha256-7gZTEIBsIuL9NvAU4euzMbmKfsTblY6Rw9nL2gZA2Sw="; 10 }; 11 12 buildInputs = [ libpcap ] ··· 27 28 meta = with lib; { 29 description = "A suite of utilities for editing and replaying network traffic"; 30 + homepage = "https://tcpreplay.appneta.com/"; 31 + license = with licenses; [ bsdOriginalUC gpl3Only ]; 32 maintainers = with maintainers; [ eleanor ]; 33 platforms = platforms.unix; 34 }; 35 }
+2 -6
pkgs/top-level/all-packages.nix
··· 22170 audacious = libsForQt5.callPackage ../applications/audio/audacious { }; 22171 audaciousQt5 = audacious; 22172 22173 - audacity-gtk2 = callPackage ../applications/audio/audacity { wxGTK = wxGTK31-gtk2; }; 22174 - audacity-gtk3 = callPackage ../applications/audio/audacity { wxGTK = wxGTK31-gtk3; }; 22175 - audacity = audacity-gtk2; 22176 22177 audio-recorder = callPackage ../applications/audio/audio-recorder { }; 22178 ··· 31293 31294 bottom = callPackage ../tools/system/bottom {}; 31295 31296 - cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix { 31297 - wlroots = wlroots_0_12; 31298 - }; 31299 31300 psftools = callPackage ../os-specific/linux/psftools {}; 31301
··· 22170 audacious = libsForQt5.callPackage ../applications/audio/audacious { }; 22171 audaciousQt5 = audacious; 22172 22173 + audacity = callPackage ../applications/audio/audacity { wxGTK = wxGTK31-gtk2; }; 22174 22175 audio-recorder = callPackage ../applications/audio/audio-recorder { }; 22176 ··· 31291 31292 bottom = callPackage ../tools/system/bottom {}; 31293 31294 + cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix { }; 31295 31296 psftools = callPackage ../os-specific/linux/psftools {}; 31297
+54
pkgs/top-level/perl-packages.nix
··· 3907 }; 3908 }; 3909 3910 CryptBlowfish = buildPerlPackage { 3911 pname = "Crypt-Blowfish"; 3912 version = "2.14"; ··· 4077 propagatedBuildInputs = [ CryptX JSON ]; 4078 meta = { 4079 description = "JSON Web Token"; 4080 license = with lib.licenses; [ artistic1 gpl1Plus ]; 4081 }; 4082 }; ··· 18816 src = fetchurl { 18817 url = "mirror://cpan/authors/id/H/HI/HIO/String-CamelCase-0.04.tar.gz"; 18818 sha256 = "1a8i4yzv586svd0pbxls7642vvmyiwzh4x2xyij8gbnfxsydxhw9"; 18819 }; 18820 }; 18821
··· 3907 }; 3908 }; 3909 3910 + CryptArgon2 = perlPackages.buildPerlModule { 3911 + pname = "Crypt-Argon2"; 3912 + version = "0.010"; 3913 + src = fetchurl { 3914 + url = "mirror://cpan/authors/id/L/LE/LEONT/Crypt-Argon2-0.010.tar.gz"; 3915 + sha256 = "3ea1c006f10ef66fd417e502a569df15c4cc1c776b084e35639751c41ce6671a"; 3916 + }; 3917 + nativeBuildInputs = [ pkgs.ld-is-cc-hook ]; 3918 + meta = { 3919 + description = "Perl interface to the Argon2 key derivation functions"; 3920 + license = lib.licenses.cc0; 3921 + }; 3922 + }; 3923 + 3924 CryptBlowfish = buildPerlPackage { 3925 pname = "Crypt-Blowfish"; 3926 version = "2.14"; ··· 4091 propagatedBuildInputs = [ CryptX JSON ]; 4092 meta = { 4093 description = "JSON Web Token"; 4094 + license = with lib.licenses; [ artistic1 gpl1Plus ]; 4095 + }; 4096 + }; 4097 + 4098 + CryptPassphrase = buildPerlPackage { 4099 + pname = "Crypt-Passphrase"; 4100 + version = "0.003"; 4101 + src = fetchurl { 4102 + url = "mirror://cpan/authors/id/L/LE/LEONT/Crypt-Passphrase-0.003.tar.gz"; 4103 + sha256 = "685aa090f8179a86d6896212ccf8ccfde7a79cce857199bb14e2277a10d240ad"; 4104 + }; 4105 + meta = { 4106 + description = "A module for managing passwords in a cryptographically agile manner"; 4107 + license = with lib.licenses; [ artistic1 gpl1Plus ]; 4108 + }; 4109 + }; 4110 + 4111 + CryptPassphraseArgon2 = buildPerlPackage { 4112 + pname = "Crypt-Passphrase-Argon2"; 4113 + version = "0.002"; 4114 + src = fetchurl { 4115 + url = "mirror://cpan/authors/id/L/LE/LEONT/Crypt-Passphrase-Argon2-0.002.tar.gz"; 4116 + sha256 = "3906ff81697d13804ee21bd5ab78ffb1c4408b4822ce020e92ecf4737ba1f3a8"; 4117 + }; 4118 + propagatedBuildInputs = with perlPackages; [ CryptArgon2 CryptPassphrase ]; 4119 + meta = { 4120 + description = "An Argon2 encoder for Crypt::Passphrase"; 4121 license = with lib.licenses; [ artistic1 gpl1Plus ]; 4122 }; 4123 }; ··· 18857 src = fetchurl { 18858 url = "mirror://cpan/authors/id/H/HI/HIO/String-CamelCase-0.04.tar.gz"; 18859 sha256 = "1a8i4yzv586svd0pbxls7642vvmyiwzh4x2xyij8gbnfxsydxhw9"; 18860 + }; 18861 + }; 18862 + 18863 + StringCompareConstantTime = buildPerlPackage { 18864 + pname = "String-Compare-ConstantTime"; 18865 + version = "0.321"; 18866 + src = fetchurl { 18867 + url = "mirror://cpan/authors/id/F/FR/FRACTAL/String-Compare-ConstantTime-0.321.tar.gz"; 18868 + sha256 = "0b26ba2b121d8004425d4485d1d46f59001c83763aa26624dff6220d7735d7f7"; 18869 + }; 18870 + meta = { 18871 + description = "Timing side-channel protected string compare"; 18872 + license = with lib.licenses; [ artistic1 gpl1Plus ]; 18873 }; 18874 }; 18875