Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 581 B view raw
1{ 2 lib, 3 writeShellApplication, 4 curl, 5 jq, 6 gnused, 7 nix, 8 nix-prefetch-github, 9 common-updater-scripts, 10}: 11engine: 12 13lib.getExe (writeShellApplication { 14 name = "openra-updater"; 15 runtimeInputs = [ 16 curl 17 jq 18 gnused 19 nix 20 nix-prefetch-github 21 common-updater-scripts 22 ]; 23 runtimeEnv = { 24 build = engine.build; 25 currentVersion = engine.version; 26 currentRev = lib.optionalString (lib.hasAttr "rev" engine) engine.rev; 27 }; 28 bashOptions = [ 29 "errexit" 30 "errtrace" 31 "nounset" 32 "pipefail" 33 ]; 34 35 text = lib.readFile ./updater.sh; 36})