lol

Merge pull request #305845 from abathur/resholve_0.10.5

resholve: 0.10.2 -> 0.10.5

authored by

Yt and committed by
GitHub
c83afadf 3b083efb

+115 -31
+13 -13
pkgs/development/misc/resholve/README.md
··· 102 102 ```nix 103 103 { 104 104 resholvedScript = resholve.writeScript "name" { 105 - inputs = [ file ]; 106 - interpreter = "${bash}/bin/bash"; 107 - } '' 108 - echo "Hello" 109 - file . 110 - ''; 105 + inputs = [ file ]; 106 + interpreter = "${bash}/bin/bash"; 107 + } '' 108 + echo "Hello" 109 + file . 110 + ''; 111 111 resholvedScriptBin = resholve.writeScriptBin "name" { 112 - inputs = [ file ]; 113 - interpreter = "${bash}/bin/bash"; 114 - } '' 115 - echo "Hello" 116 - file . 117 - ''; 112 + inputs = [ file ]; 113 + interpreter = "${bash}/bin/bash"; 114 + } '' 115 + echo "Hello" 116 + file . 117 + ''; 118 118 } 119 119 ``` 120 120 ··· 230 230 # all single-word directives use `true` as value 231 231 aliases = true; 232 232 "$GIT" = [ "gix" ]; 233 - interpreter = "/bin/bash"; 233 + "/bin/bash" = true; 234 234 }; 235 235 236 236 # --keep 'source:$HOME /etc/bashrc ~/.bashrc'
+2 -2
pkgs/development/misc/resholve/source.nix
··· 3 3 }: 4 4 5 5 rec { 6 - version = "0.10.2"; 6 + version = "0.10.5"; 7 7 rSrc = fetchFromGitHub { 8 8 owner = "abathur"; 9 9 repo = "resholve"; 10 10 rev = "v${version}"; 11 - hash = "sha256-QXIX3Ai9HUFosvhfYTUJILZ588cvxTzULUUp1LYkQ0A="; 11 + hash = "sha256-SzJbA0wLeSwvXnAE4bTNqh0tnpFPkn6N1hp7sZGAkB4="; 12 12 }; 13 13 }
+100 -16
pkgs/development/misc/resholve/test.nix
··· 18 18 , gettext 19 19 , rSrc 20 20 , runDemo ? false 21 - , fetchpatch 22 21 , binlore 23 22 , sqlite 24 23 , unixtools ··· 26 25 , rlwrap 27 26 , gnutar 28 27 , bc 28 + # override testing 29 + , esh 30 + , getconf 31 + , libarchive 32 + , locale 33 + , mount 34 + , ncurses 35 + , nixos-install-tools 36 + , nixos-rebuild 37 + , procps 38 + , ps 39 + # known consumers 40 + , aaxtomp3 41 + , arch-install-scripts 42 + , bashup-events32 43 + , dgoss 44 + , git-ftp 45 + , ix 46 + , lesspipe 47 + , locate-dominating-file 48 + , mons 49 + , msmtp 50 + , nix-direnv 51 + , pdf2odt 52 + , pdfmm 53 + , rancid 54 + , s0ix-selftest-tool 55 + , unix-privesc-check 56 + , wgnord 57 + , wsl-vpnkit 58 + , xdg-utils 59 + , yadm 60 + , zxfer 29 61 }: 30 62 31 63 let ··· 123 155 name = "resholve-test"; 124 156 src = rSrc; 125 157 126 - # TODO: should be removable on next resholve update--just 127 - # temporarily work around test breaks caused by changes in 128 - # bats 1.10.0. Since this is just about fixing tests, I'm 129 - # patching test source to avoid going through staging. 130 - patches = [ 131 - (fetchpatch { 132 - url = "https://github.com/abathur/resholve/commit/e1d6ccbc9cd5ec26122997610954dcb7d826f652.patch"; 133 - hash = "sha256-XA9KUc/OAD2S8Vpt+C7KcjTP44rnZ4FLdgnnRqVWdWY="; 134 - }) 135 - (fetchpatch { 136 - url = "https://github.com/abathur/resholve/commit/50db1a6a97baa7d7543a8abe33dddda62b487c65.patch"; 137 - hash = "sha256-m1dKaLI02Wag7uacG4BkcdCXw30Kn6J4ydTqPd7bsak="; 138 - }) 139 - ]; 140 - 141 158 dontBuild = true; 142 159 143 160 installPhase = '' ··· 206 223 echo "Hello" 207 224 file . 208 225 ''; 226 + # spot-check lore overrides 227 + loreOverrides = resholve.writeScriptBin "verify-overrides" { 228 + inputs = [ 229 + coreutils 230 + esh 231 + getconf 232 + libarchive 233 + locale 234 + mount 235 + ncurses 236 + procps 237 + ps 238 + ] ++ lib.optionals stdenv.isLinux [ 239 + nixos-install-tools 240 + nixos-rebuild 241 + ]; 242 + interpreter = "none"; 243 + execer = [ 244 + "cannot:${esh}/bin/esh" 245 + ]; 246 + fix = { 247 + mount = true; 248 + }; 249 + } ('' 250 + env b2sum fake args 251 + b2sum fake args 252 + esh fake args 253 + getconf fake args 254 + bsdtar fake args 255 + locale fake args 256 + mount fake args 257 + reset fake args 258 + tput fake args 259 + tset fake args 260 + ps fake args 261 + top fake args 262 + '' + lib.optionalString stdenv.isLinux '' 263 + nixos-generate-config fake args 264 + nixos-rebuild fake args 265 + ''); 266 + 267 + # ensure known consumers in nixpkgs keep working 268 + inherit aaxtomp3; 269 + inherit bashup-events32; 270 + inherit bats; 271 + inherit git-ftp; 272 + inherit ix; 273 + inherit lesspipe; 274 + inherit locate-dominating-file; 275 + inherit mons; 276 + inherit msmtp; 277 + inherit nix-direnv; 278 + inherit pdf2odt; 279 + inherit pdfmm; 280 + inherit shunit2; 281 + inherit xdg-utils; 282 + inherit yadm; 283 + } // lib.optionalAttrs stdenv.isLinux { 284 + inherit arch-install-scripts; 285 + inherit dgoss; 286 + inherit rancid; 287 + inherit unix-privesc-check; 288 + inherit wgnord; 289 + inherit wsl-vpnkit; 290 + inherit zxfer; 291 + } // lib.optionalAttrs (stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64)) { 292 + inherit s0ix-selftest-tool; 209 293 }