Merge pull request #254306 from dotlambda/tedicross-drop

nodePackages.tedicross: drop

authored by

Robert Schütz and committed by
GitHub
1f832ad5 9eaa0e39

+4 -362
-1
nixos/modules/module-list.nix
··· 1069 1069 ./services/networking/tayga.nix 1070 1070 ./services/networking/tcpcrypt.nix 1071 1071 ./services/networking/teamspeak3.nix 1072 - ./services/networking/tedicross.nix 1073 1072 ./services/networking/teleport.nix 1074 1073 ./services/networking/tetrd.nix 1075 1074 ./services/networking/tftpd.nix
+3
nixos/modules/rename.nix
··· 124 124 See https://www.isc.org/blogs/isc-dhcp-eol/ for details. 125 125 Please switch to a different implementation like kea or dnsmasq. 126 126 '') 127 + (mkRemovedOptionModule [ "services" "tedicross" ] '' 128 + The corresponding package was broken and removed from nixpkgs. 129 + '') 127 130 128 131 # Do NOT add any option renames here, see top of the file 129 132 ];
-100
nixos/modules/services/networking/tedicross.nix
··· 1 - { config, pkgs, lib, ... }: 2 - 3 - with lib; 4 - 5 - let 6 - dataDir = "/var/lib/tedicross"; 7 - cfg = config.services.tedicross; 8 - configJSON = pkgs.writeText "tedicross-settings.json" (builtins.toJSON cfg.config); 9 - configYAML = pkgs.runCommand "tedicross-settings.yaml" { preferLocalBuild = true; } '' 10 - ${pkgs.remarshal}/bin/json2yaml -i ${configJSON} -o $out 11 - ''; 12 - 13 - in { 14 - options = { 15 - services.tedicross = { 16 - enable = mkEnableOption (lib.mdDoc "the TediCross Telegram-Discord bridge service"); 17 - 18 - config = mkOption { 19 - type = types.attrs; 20 - # from https://github.com/TediCross/TediCross/blob/master/example.settings.yaml 21 - example = literalExpression '' 22 - { 23 - telegram = { 24 - useFirstNameInsteadOfUsername = false; 25 - colonAfterSenderName = false; 26 - skipOldMessages = true; 27 - sendEmojiWithStickers = true; 28 - }; 29 - discord = { 30 - useNickname = false; 31 - skipOldMessages = true; 32 - displayTelegramReplies = "embed"; 33 - replyLength = 100; 34 - }; 35 - bridges = [ 36 - { 37 - name = "Default bridge"; 38 - direction = "both"; 39 - telegram = { 40 - chatId = -123456789; 41 - relayJoinMessages = true; 42 - relayLeaveMessages = true; 43 - sendUsernames = true; 44 - ignoreCommands = true; 45 - }; 46 - discord = { 47 - serverId = "DISCORD_SERVER_ID"; 48 - channelId = "DISCORD_CHANNEL_ID"; 49 - relayJoinMessages = true; 50 - relayLeaveMessages = true; 51 - sendUsernames = true; 52 - crossDeleteOnTelegram = true; 53 - }; 54 - } 55 - ]; 56 - 57 - debug = false; 58 - } 59 - ''; 60 - description = lib.mdDoc '' 61 - {file}`settings.yaml` configuration as a Nix attribute set. 62 - Secret tokens should be specified using {option}`environmentFile` 63 - instead of this world-readable file. 64 - ''; 65 - }; 66 - 67 - environmentFile = mkOption { 68 - type = types.nullOr types.path; 69 - default = null; 70 - description = lib.mdDoc '' 71 - File containing environment variables to be passed to the TediCross service, 72 - in which secret tokens can be specified securely using the 73 - `TELEGRAM_BOT_TOKEN` and `DISCORD_BOT_TOKEN` 74 - keys. 75 - ''; 76 - }; 77 - }; 78 - }; 79 - 80 - config = mkIf cfg.enable { 81 - # from https://github.com/TediCross/TediCross/blob/master/guides/autostart/Linux.md 82 - systemd.services.tedicross = { 83 - description = "TediCross Telegram-Discord bridge service"; 84 - wantedBy = [ "multi-user.target" ]; 85 - wants = [ "network-online.target" ]; 86 - after = [ "network-online.target" ]; 87 - serviceConfig = { 88 - Type = "simple"; 89 - ExecStart = "${pkgs.nodePackages.tedicross}/bin/tedicross --config='${configYAML}' --data-dir='${dataDir}'"; 90 - Restart = "always"; 91 - DynamicUser = true; 92 - StateDirectory = baseNameOf dataDir; 93 - EnvironmentFile = cfg.environmentFile; 94 - }; 95 - }; 96 - }; 97 - 98 - meta.maintainers = with maintainers; [ pacien ]; 99 - } 100 -
+1
pkgs/development/node-packages/aliases.nix
··· 111 111 inherit (pkgs) stylelint; # added 2023-09-13 112 112 surge = pkgs.surge-cli; # Added 2023-09-08 113 113 swagger = throw "swagger was removed because it was broken and abandoned upstream"; # added 2023-09-09 114 + tedicross = throw "tedicross was removed because it was broken"; # added 2023-09-09 114 115 inherit (pkgs) terser; # Added 2023-08-31 115 116 thelounge = pkgs.thelounge; # Added 2023-05-22 116 117 three = throw "three was removed because it was no longer needed"; # Added 2023-09-08
-1
pkgs/development/node-packages/node-packages.json
··· 237 237 , "svelte-language-server" 238 238 , "svgo" 239 239 , "tailwindcss" 240 - , {"tedicross": "git+https://github.com/TediCross/TediCross.git#v0.8.7"} 241 240 , "teck-programmer" 242 241 , "tern" 243 242 , "textlint"
-252
pkgs/development/node-packages/node-packages.nix
··· 105874 105874 bypassCache = true; 105875 105875 reconstructLock = true; 105876 105876 }; 105877 - "tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7" = nodeEnv.buildNodePackage { 105878 - name = "tedicross"; 105879 - packageName = "tedicross"; 105880 - version = "0.8.7"; 105881 - src = fetchgit { 105882 - url = "https://github.com/TediCross/TediCross.git"; 105883 - rev = "80ec2189cbda51eec9f3cd3f7f551b7a71474d38"; 105884 - sha256 = "886069ecc5eedf0371b948e8ff66e7f2943c85fe7cfdaa7183e1a3572d55852b"; 105885 - }; 105886 - dependencies = [ 105887 - sources."@discordjs/opus-0.1.0" 105888 - sources."@discordjs/uws-10.149.0" 105889 - sources."abbrev-1.1.1" 105890 - sources."ajv-6.12.6" 105891 - sources."ansi-regex-2.1.1" 105892 - sources."ansi-styles-3.2.1" 105893 - sources."aproba-1.2.0" 105894 - sources."are-we-there-yet-1.1.7" 105895 - sources."argparse-1.0.10" 105896 - sources."asn1-0.2.6" 105897 - sources."assert-plus-1.0.0" 105898 - sources."async-limiter-1.0.1" 105899 - sources."asynckit-0.4.0" 105900 - sources."aws-sign2-0.7.0" 105901 - sources."aws4-1.12.0" 105902 - sources."balanced-match-1.0.2" 105903 - (sources."bcrypt-pbkdf-1.0.2" // { 105904 - dependencies = [ 105905 - sources."tweetnacl-0.14.5" 105906 - ]; 105907 - }) 105908 - sources."bindings-1.5.0" 105909 - sources."brace-expansion-1.1.11" 105910 - sources."bufferutil-4.0.7" 105911 - sources."camelcase-5.3.1" 105912 - sources."caseless-0.12.0" 105913 - sources."chownr-1.1.4" 105914 - (sources."cliui-5.0.0" // { 105915 - dependencies = [ 105916 - sources."ansi-regex-4.1.1" 105917 - sources."is-fullwidth-code-point-2.0.0" 105918 - sources."string-width-3.1.0" 105919 - sources."strip-ansi-5.2.0" 105920 - ]; 105921 - }) 105922 - sources."code-point-at-1.1.0" 105923 - sources."color-convert-1.9.3" 105924 - sources."color-name-1.1.3" 105925 - sources."combined-stream-1.0.8" 105926 - sources."commander-2.20.3" 105927 - sources."concat-map-0.0.1" 105928 - sources."console-control-strings-1.1.0" 105929 - sources."core-util-is-1.0.3" 105930 - sources."dashdash-1.14.1" 105931 - sources."debug-3.2.7" 105932 - sources."decamelize-1.2.0" 105933 - sources."deep-extend-0.6.0" 105934 - sources."delayed-stream-1.0.0" 105935 - sources."delegates-1.0.0" 105936 - sources."detect-libc-1.0.3" 105937 - sources."discord.js-11.6.4" 105938 - sources."ecc-jsbn-0.1.2" 105939 - sources."emoji-regex-7.0.3" 105940 - (sources."encoding-0.1.13" // { 105941 - dependencies = [ 105942 - sources."iconv-lite-0.6.3" 105943 - ]; 105944 - }) 105945 - sources."erlpack-git+https://github.com/discordapp/erlpack" 105946 - sources."esprima-4.0.1" 105947 - sources."extend-3.0.2" 105948 - sources."extsprintf-1.3.0" 105949 - sources."fast-deep-equal-3.1.3" 105950 - sources."fast-json-stable-stringify-2.1.0" 105951 - sources."file-uri-to-path-1.0.0" 105952 - sources."find-up-3.0.0" 105953 - sources."forever-agent-0.6.1" 105954 - sources."form-data-2.3.3" 105955 - sources."fs-minipass-1.2.7" 105956 - sources."fs.realpath-1.0.0" 105957 - sources."gauge-2.7.4" 105958 - sources."get-caller-file-2.0.5" 105959 - sources."getpass-0.1.7" 105960 - sources."glob-7.2.3" 105961 - sources."har-schema-2.0.0" 105962 - sources."har-validator-5.1.5" 105963 - sources."has-unicode-2.0.1" 105964 - sources."http-signature-1.2.0" 105965 - sources."iconv-lite-0.4.24" 105966 - sources."ignore-walk-3.0.4" 105967 - sources."inflight-1.0.6" 105968 - sources."inherits-2.0.4" 105969 - sources."ini-1.3.8" 105970 - sources."is-fullwidth-code-point-1.0.0" 105971 - sources."is-typedarray-1.0.0" 105972 - sources."isarray-1.0.0" 105973 - sources."isstream-0.1.2" 105974 - sources."js-yaml-3.14.1" 105975 - sources."jsbn-0.1.1" 105976 - sources."json-schema-0.4.0" 105977 - sources."json-schema-traverse-0.4.1" 105978 - sources."json-stringify-safe-5.0.1" 105979 - sources."jsprim-1.4.2" 105980 - sources."libsodium-0.7.11" 105981 - sources."libsodium-wrappers-0.7.11" 105982 - sources."locate-path-3.0.0" 105983 - sources."long-4.0.0" 105984 - sources."mime-2.6.0" 105985 - sources."mime-db-1.52.0" 105986 - sources."mime-types-2.1.35" 105987 - sources."minimatch-3.1.2" 105988 - sources."minimist-1.2.8" 105989 - sources."minipass-2.9.0" 105990 - sources."minizlib-1.3.3" 105991 - sources."mkdirp-0.5.6" 105992 - sources."module-alias-2.2.3" 105993 - sources."moment-2.29.4" 105994 - sources."ms-2.1.3" 105995 - sources."nan-2.17.0" 105996 - sources."needle-2.9.1" 105997 - sources."node-addon-api-2.0.2" 105998 - sources."node-fetch-2.6.13" 105999 - sources."node-gyp-build-4.6.0" 106000 - (sources."node-opus-0.2.9" // { 106001 - dependencies = [ 106002 - sources."bindings-1.2.1" 106003 - ]; 106004 - }) 106005 - sources."node-pre-gyp-0.14.0" 106006 - sources."nopt-4.0.3" 106007 - sources."npm-bundled-1.1.2" 106008 - sources."npm-normalize-package-bin-1.0.1" 106009 - sources."npm-packlist-1.4.8" 106010 - sources."npmlog-4.1.2" 106011 - sources."number-is-nan-1.0.1" 106012 - sources."oauth-sign-0.9.0" 106013 - sources."object-assign-4.1.1" 106014 - sources."ogg-packet-1.0.1" 106015 - sources."once-1.4.0" 106016 - sources."opusscript-0.0.6" 106017 - sources."os-homedir-1.0.2" 106018 - sources."os-tmpdir-1.0.2" 106019 - sources."osenv-0.1.5" 106020 - sources."p-limit-2.3.0" 106021 - sources."p-locate-3.0.0" 106022 - sources."p-try-2.2.0" 106023 - sources."path-exists-3.0.0" 106024 - sources."path-is-absolute-1.0.1" 106025 - sources."performance-now-2.1.0" 106026 - sources."prism-media-0.0.4" 106027 - sources."process-nextick-args-2.0.1" 106028 - sources."psl-1.9.0" 106029 - sources."punycode-2.3.0" 106030 - sources."qs-6.5.3" 106031 - sources."ramda-0.25.0" 106032 - sources."rc-1.2.8" 106033 - sources."readable-stream-2.3.8" 106034 - (sources."ref-1.3.5" // { 106035 - dependencies = [ 106036 - sources."debug-2.6.9" 106037 - sources."ms-2.0.0" 106038 - ]; 106039 - }) 106040 - (sources."ref-struct-1.1.0" // { 106041 - dependencies = [ 106042 - sources."debug-2.6.9" 106043 - sources."ms-2.0.0" 106044 - ]; 106045 - }) 106046 - sources."request-2.88.2" 106047 - sources."require-directory-2.1.1" 106048 - sources."require-main-filename-2.0.0" 106049 - sources."rimraf-2.7.1" 106050 - sources."safe-buffer-5.1.2" 106051 - sources."safer-buffer-2.1.2" 106052 - sources."sandwich-stream-2.0.2" 106053 - sources."sax-1.2.4" 106054 - sources."semver-5.7.2" 106055 - sources."set-blocking-2.0.0" 106056 - sources."signal-exit-3.0.7" 106057 - sources."simple-markdown-0.4.4" 106058 - sources."snekfetch-3.6.4" 106059 - sources."sodium-2.0.3" 106060 - sources."sprintf-js-1.0.3" 106061 - (sources."sshpk-1.17.0" // { 106062 - dependencies = [ 106063 - sources."tweetnacl-0.14.5" 106064 - ]; 106065 - }) 106066 - sources."string-width-1.0.2" 106067 - sources."string_decoder-1.1.1" 106068 - sources."strip-ansi-3.0.1" 106069 - sources."strip-json-comments-2.0.1" 106070 - (sources."tar-4.4.19" // { 106071 - dependencies = [ 106072 - sources."safe-buffer-5.2.1" 106073 - ]; 106074 - }) 106075 - (sources."telegraf-3.40.0" // { 106076 - dependencies = [ 106077 - sources."debug-4.3.4" 106078 - sources."ms-2.1.2" 106079 - ]; 106080 - }) 106081 - sources."tough-cookie-2.5.0" 106082 - sources."tr46-0.0.3" 106083 - sources."tunnel-agent-0.6.0" 106084 - sources."tweetnacl-1.0.3" 106085 - sources."typegram-3.12.0" 106086 - sources."uri-js-4.4.1" 106087 - sources."util-deprecate-1.0.2" 106088 - sources."uuid-3.4.0" 106089 - (sources."verror-1.10.0" // { 106090 - dependencies = [ 106091 - sources."core-util-is-1.0.2" 106092 - ]; 106093 - }) 106094 - sources."webidl-conversions-3.0.1" 106095 - sources."whatwg-url-5.0.0" 106096 - sources."which-module-2.0.1" 106097 - sources."wide-align-1.1.5" 106098 - (sources."wrap-ansi-5.1.0" // { 106099 - dependencies = [ 106100 - sources."ansi-regex-4.1.1" 106101 - sources."is-fullwidth-code-point-2.0.0" 106102 - sources."string-width-3.1.0" 106103 - sources."strip-ansi-5.2.0" 106104 - ]; 106105 - }) 106106 - sources."wrappy-1.0.2" 106107 - sources."ws-6.2.2" 106108 - sources."y18n-4.0.3" 106109 - sources."yallist-3.1.1" 106110 - (sources."yargs-13.3.2" // { 106111 - dependencies = [ 106112 - sources."ansi-regex-4.1.1" 106113 - sources."is-fullwidth-code-point-2.0.0" 106114 - sources."string-width-3.1.0" 106115 - sources."strip-ansi-5.2.0" 106116 - ]; 106117 - }) 106118 - sources."yargs-parser-13.1.2" 106119 - ]; 106120 - buildInputs = globalBuildInputs; 106121 - meta = { 106122 - description = "Better DiteCross"; 106123 - license = "MIT"; 106124 - }; 106125 - production = true; 106126 - bypassCache = true; 106127 - reconstructLock = true; 106128 - }; 106129 105877 teck-programmer = nodeEnv.buildNodePackage { 106130 105878 name = "teck-programmer"; 106131 105879 packageName = "teck-programmer";
-8
pkgs/development/node-packages/overrides.nix
··· 352 352 buildInputs = [ pkgs.libusb1 ]; 353 353 }; 354 354 355 - tedicross = prev."tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7".override { 356 - nativeBuildInputs = with pkgs; [ makeWrapper libtool autoconf ]; 357 - postInstall = '' 358 - makeWrapper '${nodejs}/bin/node' "$out/bin/tedicross" \ 359 - --add-flags "$out/lib/node_modules/tedicross/main.js" 360 - ''; 361 - }; 362 - 363 355 thelounge-plugin-closepms = prev.thelounge-plugin-closepms.override { 364 356 nativeBuildInputs = [ final.node-pre-gyp ]; 365 357 };