From b8b67383867765ec2317d920c6285379da494164 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Fri, 11 Oct 2024 10:46:26 -0700 Subject: [PATCH 1/9] OWNERS: make the LLVM team own all of LLVM --- ci/OWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/OWNERS b/ci/OWNERS index 97eae12a2d65..cf8eeaf80ac9 100644 --- a/ci/OWNERS +++ b/ci/OWNERS @@ -167,7 +167,7 @@ nixos/modules/installer/tools/nix-fallback-paths.nix @NixOS/nix-team @raitobeza # C compilers /pkgs/development/compilers/gcc -/pkgs/development/compilers/llvm @alyssais @RossComputerGuy +/pkgs/development/compilers/llvm @alyssais @RossComputerGuy @NixOS/llvm /pkgs/development/compilers/emscripten @raitobezarius /doc/languages-frameworks/emscripten.section.md @raitobezarius From 4aa8864c1ef8f715794c2685522fd41e7f980ebf Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Fri, 11 Oct 2024 10:28:41 -0700 Subject: [PATCH 2/9] teams: create the stdenv team --- ci/OWNERS | 10 +++++----- maintainers/team-list.nix | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ci/OWNERS b/ci/OWNERS index 97eae12a2d65..734daf71e657 100644 --- a/ci/OWNERS +++ b/ci/OWNERS @@ -27,7 +27,7 @@ # Libraries /lib @infinisil -/lib/systems @alyssais @ericson2314 +/lib/systems @alyssais @ericson2314 @NixOS/stdenv /lib/generators.nix @infinisil @Profpatsch /lib/cli.nix @infinisil @Profpatsch /lib/debug.nix @infinisil @Profpatsch @@ -49,10 +49,10 @@ /pkgs/top-level/splice.nix @Ericson2314 /pkgs/top-level/release-cross.nix @Ericson2314 /pkgs/top-level/by-name-overlay.nix @infinisil @philiptaron -/pkgs/stdenv @philiptaron -/pkgs/stdenv/generic @Ericson2314 -/pkgs/stdenv/generic/check-meta.nix @Ericson2314 -/pkgs/stdenv/cross @Ericson2314 +/pkgs/stdenv @philiptaron @NixOS/stdenv +/pkgs/stdenv/generic @Ericson2314 @NixOS/stdenv +/pkgs/stdenv/generic/check-meta.nix @Ericson2314 @NixOS/stdenv +/pkgs/stdenv/cross @Ericson2314 @NixOS/stdenv /pkgs/build-support @philiptaron /pkgs/build-support/cc-wrapper @Ericson2314 /pkgs/build-support/bintools-wrapper @Ericson2314 diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 546c944e0c53..84d301815e6a 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -950,6 +950,21 @@ with lib.maintainers; shortName = "Serokell employees"; }; + stdenv = { + members = [ + artturin + emily + ericson2314 + philiptaron + reckenrode + RossComputerGuy + ]; + scope = "Maintain the standard environment and its surrounding logic."; + shortName = "stdenv"; + enableFeatureFreezePing = true; + githubTeams = [ "stdenv" ]; + }; + steam = { members = [ atemu From db1b484d986440256b32c898dd44985bf98401c0 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 16 Oct 2024 08:34:44 -0700 Subject: [PATCH 3/9] flake.nix: exclude armv6-linux and riscv64-linux from checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, `nix flake check --all-systems --json` fails with: error: … while calling the 'head' builtin at /nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/lib/attrsets.nix:1575:11: 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … while evaluating the attribute 'value' at /nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/lib/modules.nix:816:9: 815| in warnDeprecation opt // 816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 817| inherit (res.defsFinal') highestPrio; … while evaluating the option `system.build.toplevel': … while evaluating definitions from `/nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/nixos/modules/system/activation/top-level.nix': … while evaluating the option `system.systemBuilderArgs': … while evaluating definitions from `/nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/nixos/modules/system/activation/activatable-system.nix': … while evaluating the option `system.activationScripts.etc.text': … while evaluating definitions from `/nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/nixos/modules/system/etc/etc-activation.nix': … while evaluating definitions from `/nix/store/0jy5khqx0rfw8avcq6z5zaxaj2ppz8d3-source/nixos/modules/system/etc/etc.nix': … while evaluating the option `environment.etc.dbus-1.source': (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: cannot bootstrap GHC on this platform ('riscv64-linux' with libc 'defaultLibc') --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 950eb2b5c4d1..f67d2724bce8 100644 --- a/flake.nix +++ b/flake.nix @@ -80,8 +80,17 @@ checks = forAllSystems (system: { tarball = jobs.${system}.tarball; - # Exclude power64 due to "libressl is not available on the requested hostPlatform" with hostPlatform being power64 - } // lib.optionalAttrs (self.legacyPackages.${system}.stdenv.hostPlatform.isLinux && !self.legacyPackages.${system}.targetPlatform.isPower64) { + } // lib.optionalAttrs + ( + self.legacyPackages.${system}.stdenv.hostPlatform.isLinux + # Exclude power64 due to "libressl is not available on the requested hostPlatform" with hostPlatform being power64 + && !self.legacyPackages.${system}.targetPlatform.isPower64 + # Exclude armv6l-linux due to "cannot bootstrap GHC on this platform ('armv6l-linux' with libc 'defaultLibc')" + && system != "armv6l-linux" + # Exclude riscv64-linux due to "cannot bootstrap GHC on this platform ('riscv64-linux' with libc 'defaultLibc')" + && system != "riscv64-linux" + ) + { # Test that ensures that the nixosSystem function can accept a lib argument # Note: prefer not to extend or modify `lib`, especially if you want to share reusable modules # alternatives include: `import` a file, or put a custom library in an option or in `_module.args.` From ccb779782ccb471954971697fcdf1c2331cd906b Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 16 Oct 2024 08:46:44 -0700 Subject: [PATCH 4/9] flake.nix: exclude armv6-linux, riscv64-linux, and FreeBSD from devShells MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nixfmt-rfc-style is built with Haskell, and the packaged GHC compiler does not support any of these platforms (currently?). error: … while checking flake output 'devShells' at /nix/store/p36amaznf46ic90fb2rw5c952mgj6mfi-source/flake.nix:123:7: 122| 123| devShells = forAllSystems (system: { } // lib.optionalAttrs (system != "armv6l-linux" && system != "riscv64-linux") { | ^ 124| /** A shell to get tooling for Nixpkgs development. See nixpkgs/shell.nix. */ … while checking the derivation 'devShells.x86_64-freebsd.default' at /nix/store/p36amaznf46ic90fb2rw5c952mgj6mfi-source/flake.nix:125:9: 124| /** A shell to get tooling for Nixpkgs development. See nixpkgs/shell.nix. */ 125| default = import ./shell.nix { inherit system; }; | ^ 126| }); (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: Package ‘ghc-9.6.6’ in /nix/store/8akjd9ngyzhzi1412nxmw26rnj93l3gp-source/pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform: hostPlatform.config = "x86_64-unknown-freebsd" package.meta.platforms = [ "aarch64-darwin" "aarch64-linux" "i686-linux" "x86_64-darwin" "x86_64-linux" ] package.meta.badPlatforms = [ ] , refusing to evaluate. --- flake.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index f67d2724bce8..9873c1c94971 100644 --- a/flake.nix +++ b/flake.nix @@ -120,10 +120,20 @@ }).nixos.manual; }; - devShells = forAllSystems (system: { - /** A shell to get tooling for Nixpkgs development. See nixpkgs/shell.nix. */ - default = import ./shell.nix { inherit system; }; - }); + devShells = forAllSystems (system: + { } // lib.optionalAttrs + ( + # Exclude armv6l-linux because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" + system != "armv6l-linux" + # Exclude riscv64-linux because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" + && system != "riscv64-linux" + # Exclude FreeBSD because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" + && !self.legacyPackages.${system}.stdenv.hostPlatform.isFreeBSD + ) + { + /** A shell to get tooling for Nixpkgs development. See nixpkgs/shell.nix. */ + default = import ./shell.nix { inherit system; }; + }); /** A nested structure of [packages](https://nix.dev/manual/nix/latest/glossary#package-attribute-set) and other values. From 705fdd9ccc0f8dccade08344cdfb75593b7f91d0 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 16 Oct 2024 08:49:28 -0700 Subject: [PATCH 5/9] ci/basic-eval: check that flake outputs are valid --- .github/workflows/basic-eval.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/basic-eval.yml b/.github/workflows/basic-eval.yml index 5a8f20eb711d..b3a85c297925 100644 --- a/.github/workflows/basic-eval.yml +++ b/.github/workflows/basic-eval.yml @@ -26,5 +26,6 @@ jobs: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. name: nixpkgs-ci signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build # explicit list of supportedSystems is needed until aarch64-darwin becomes part of the trunk jobset - run: nix-build pkgs/top-level/release.nix -A release-checks --arg supportedSystems '[ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]' From 0003fd75d8defb755d3593dfe810d3767cd6e605 Mon Sep 17 00:00:00 2001 From: Tomo Date: Fri, 18 Oct 2024 23:41:34 +0000 Subject: [PATCH 6/9] {nodePackages,vimPlugins}.coc-tslint{,-plugin}: drop Both deprecated upstream: https://github.com/neoclide/coc-tslint https://github.com/neoclide/coc-tslint-plugin coc-eslint provides comparable features and is maintained. Part of #229475 --- .../manual/release-notes/rl-2411.section.md | 5 + .../editors/vim/plugins/overrides.nix | 2 - pkgs/development/node-packages/aliases.nix | 2 + .../node-packages/node-packages.json | 2 - .../node-packages/node-packages.nix | 96 ------------------- 5 files changed, 7 insertions(+), 100 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index 527922434033..d0c1e1af6f29 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -367,6 +367,11 @@ - `matrix-sliding-sync` was removed because it has been replaced by the simplified sliding sync functionality introduced in matrix-synapse 114.0. +- `nodePackages.coc-tslint`, `vimPlugins.coc-tslint`, `nodePackages.coc-tslint-plugin`, + and `vimPlugins.coc-tslint-plugin` were removed due to being deprecated upstream. The + `nodePackages.coc-eslint` and `vimPlugins.coc-eslint` packages offer comparable + features for `eslint`, which replaced `tslint`. + - `teleport` has been upgraded from major version 15 to major version 16. Refer to upstream [upgrade instructions](https://goteleport.com/docs/management/operations/upgrading/) and [release notes for v16](https://goteleport.com/docs/changelog/#1600-061324). diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 3dc4109ab99a..811146d7eff7 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -2757,8 +2757,6 @@ in "coc-tabnine" "coc-texlab" "coc-toml" - "coc-tslint" - "coc-tslint-plugin" "coc-tsserver" "coc-ultisnips" "coc-vetur" diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index c0ac63577954..566a3ff6582e 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -76,6 +76,8 @@ mapAliases { inherit (pkgs) coc-pyright; # added 2024-07-14 coc-metals = throw "coc-metals was removed because it was deprecated upstream. vimPlugins.nvim-metals is its official replacement."; # Added 2024-10-16 coc-python = throw "coc-python was removed because it was abandoned upstream on 2020-12-24. Upstream now recommends using coc-pyright or coc-jedi instead."; # added 2024-10-15 + coc-tslint = throw "coc-tslint was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18 + coc-tslint-plugin = throw "coc-tslint-plugin was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18 coinmon = throw "coinmon was removed since it was abandoned upstream"; # added 2024-03-19 coffee-script = pkgs.coffeescript; # added 2023-08-18 inherit (pkgs) concurrently; # added 2024-08-05 diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 446c0d4fe6cb..aa5f90bb265a 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -60,8 +60,6 @@ , "coc-tabnine" , "coc-texlab" , "coc-toml" -, "coc-tslint" -, "coc-tslint-plugin" , "coc-tsserver" , "coc-ultisnips" , "coc-vetur" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index 0d5ce792d47b..c3d77b4cdc01 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -61714,102 +61714,6 @@ in bypassCache = true; reconstructLock = true; }; - coc-tslint = nodeEnv.buildNodePackage { - name = "coc-tslint"; - packageName = "coc-tslint"; - version = "1.0.17"; - src = fetchurl { - url = "https://registry.npmjs.org/coc-tslint/-/coc-tslint-1.0.17.tgz"; - sha512 = "5Zxv2Adtb6Mlpv2YdKErhf8ntxiBl1UyrbEqo7gR9nFIAfi3o0Ue6TJTpZfOhQViFQxLjJAS65IQVRaNlbhkxw=="; - }; - dependencies = [ - sources."@babel/code-frame-7.24.7" - sources."@babel/helper-validator-identifier-7.24.7" - sources."@babel/highlight-7.24.7" - sources."ansi-styles-3.2.1" - sources."argparse-1.0.10" - sources."balanced-match-1.0.2" - sources."brace-expansion-1.1.11" - sources."builtin-modules-1.1.1" - sources."chalk-2.4.2" - sources."color-convert-1.9.3" - sources."color-name-1.1.3" - sources."commander-2.20.3" - sources."concat-map-0.0.1" - sources."diff-4.0.2" - sources."escape-string-regexp-1.0.5" - sources."esprima-4.0.1" - sources."fs.realpath-1.0.0" - sources."function-bind-1.1.2" - sources."glob-7.2.3" - sources."has-flag-3.0.0" - sources."hasown-2.0.2" - sources."inflight-1.0.6" - sources."inherits-2.0.4" - sources."is-core-module-2.15.1" - sources."js-tokens-4.0.0" - sources."js-yaml-3.14.1" - sources."minimatch-3.1.2" - sources."minimist-1.2.8" - sources."mkdirp-0.5.6" - sources."once-1.4.0" - sources."path-is-absolute-1.0.1" - sources."path-parse-1.0.7" - sources."picocolors-1.1.0" - sources."resolve-1.22.8" - sources."semver-5.7.2" - sources."sprintf-js-1.0.3" - sources."supports-color-5.5.0" - sources."supports-preserve-symlinks-flag-1.0.0" - sources."tslib-1.14.1" - sources."tslint-5.20.1" - sources."tsutils-2.29.0" - sources."typescript-3.9.10" - sources."wrappy-1.0.2" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "tslint extension for coc.nvim"; - homepage = "https://github.com/neoclide/coc-tslint#readme"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; - coc-tslint-plugin = nodeEnv.buildNodePackage { - name = "coc-tslint-plugin"; - packageName = "coc-tslint-plugin"; - version = "1.2.0"; - src = fetchurl { - url = "https://registry.npmjs.org/coc-tslint-plugin/-/coc-tslint-plugin-1.2.0.tgz"; - sha512 = "WEl0FM8ui0Oip6YqyOYApf8vErXFudj2ftjSYqm5WNLNuPq53JSNi+5w+WNqHwX2UWE8MOB2mQszqwU2fyE8Ag=="; - }; - dependencies = [ - sources."balanced-match-1.0.2" - sources."brace-expansion-1.1.11" - sources."concat-map-0.0.1" - sources."get-caller-file-1.0.3" - sources."minimatch-3.1.2" - sources."mock-require-3.0.3" - sources."normalize-path-2.1.1" - sources."remove-trailing-separator-1.1.0" - sources."typescript-tslint-plugin-0.5.4" - sources."vscode-jsonrpc-4.0.0" - sources."vscode-languageserver-5.2.1" - sources."vscode-languageserver-protocol-3.14.1" - sources."vscode-languageserver-types-3.14.0" - sources."vscode-uri-1.0.8" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "TSLint extension for coc.nvim as tsserver plugin"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; coc-tsserver = nodeEnv.buildNodePackage { name = "coc-tsserver"; packageName = "coc-tsserver"; From c51b9a630fdf8451dd1cb741b0a75a62ac2d0e24 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 18 Oct 2024 20:50:13 +0800 Subject: [PATCH 7/9] epic: run nixfmt --- .../networking/irc/epic5/default.nix | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/irc/epic5/default.nix b/pkgs/applications/networking/irc/epic5/default.nix index c3a10cc39e9d..349ae8c0c834 100644 --- a/pkgs/applications/networking/irc/epic5/default.nix +++ b/pkgs/applications/networking/irc/epic5/default.nix @@ -1,4 +1,15 @@ -{ lib, stdenv, fetchurl, openssl, ncurses, libiconv, tcl, coreutils, fetchpatch, libxcrypt }: +{ + lib, + stdenv, + fetchurl, + openssl, + ncurses, + libiconv, + tcl, + coreutils, + fetchpatch, + libxcrypt, +}: stdenv.mkDerivation rec { pname = "epic5"; @@ -10,8 +21,16 @@ stdenv.mkDerivation rec { }; # Darwin needs libiconv, tcl; while Linux build don't - buildInputs = [ openssl ncurses libxcrypt ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv tcl ]; + buildInputs = + [ + openssl + ncurses + libxcrypt + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + libiconv + tcl + ]; patches = [ (fetchpatch { @@ -20,7 +39,10 @@ stdenv.mkDerivation rec { }) ]; - configureFlags = [ "--disable-debug" "--with-ipv6" ]; + configureFlags = [ + "--disable-debug" + "--with-ipv6" + ]; postConfigure = '' substituteInPlace bsdinstall \ @@ -36,6 +58,3 @@ stdenv.mkDerivation rec { maintainers = [ ]; }; } - - - From 1b2eb552be105468da2ab4fb542034599bcc9bf3 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 18 Oct 2024 20:51:06 +0800 Subject: [PATCH 8/9] epic: move to by-name --- .../irc/epic5/default.nix => by-name/ep/epic5/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{applications/networking/irc/epic5/default.nix => by-name/ep/epic5/package.nix} (100%) diff --git a/pkgs/applications/networking/irc/epic5/default.nix b/pkgs/by-name/ep/epic5/package.nix similarity index 100% rename from pkgs/applications/networking/irc/epic5/default.nix rename to pkgs/by-name/ep/epic5/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 982de17fe824..c5a4fba39e3c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28879,8 +28879,6 @@ with pkgs; ephemeral = callPackage ../applications/networking/browsers/ephemeral { }; - epic5 = callPackage ../applications/networking/irc/epic5 { }; - epick = callPackage ../applications/graphics/epick { inherit (darwin.apple_sdk.frameworks) AppKit; }; From 23142ecd11ac992c176e09624694606343391932 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 18 Oct 2024 21:07:59 +0800 Subject: [PATCH 9/9] epic: 2.0.1 -> 3.0 --- pkgs/by-name/ep/epic5/package.nix | 43 ++++++++++++------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/ep/epic5/package.nix b/pkgs/by-name/ep/epic5/package.nix index 349ae8c0c834..a73b64043b5c 100644 --- a/pkgs/by-name/ep/epic5/package.nix +++ b/pkgs/by-name/ep/epic5/package.nix @@ -1,60 +1,51 @@ { lib, stdenv, + ruby, fetchurl, openssl, ncurses, libiconv, tcl, - coreutils, - fetchpatch, libxcrypt, + perl, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "epic5"; - version = "2.0.1"; + version = "3.0"; src = fetchurl { - url = "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${pname}-${version}.tar.xz"; - sha256 = "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"; + url = "https://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/epic5-${finalAttrs.version}.tar.xz"; + hash = "sha256-ltRzUME6PZkBnaDmoEsMf4Datt26WQvMZ527iswXeaE="; }; - # Darwin needs libiconv, tcl; while Linux build don't buildInputs = [ openssl ncurses libxcrypt + ruby ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv tcl ]; - patches = [ - (fetchpatch { - url = "https://sources.debian.net/data/main/e/epic5/2.0.1-1/debian/patches/openssl-1.1.patch"; - sha256 = "03bpsyv1sr5icajs2qkdvv8nnn6rz6yvvj7pgiq8gz9sbp6siyfv"; - }) - ]; - configureFlags = [ - "--disable-debug" "--with-ipv6" ]; - postConfigure = '' - substituteInPlace bsdinstall \ - --replace /bin/cp ${coreutils}/bin/cp \ - --replace /bin/rm ${coreutils}/bin/rm \ - --replace /bin/chmod ${coreutils}/bin/chmod \ - ''; + nativeBuildInputs = [ + perl + ]; - meta = with lib; { - homepage = "http://epicsol.org"; + meta = { + homepage = "https://epicsol.org"; description = "IRC client that offers a great ircII interface"; - license = licenses.bsd3; - maintainers = [ ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + platforms = lib.platforms.unix; + mainProgram = "epic5"; }; -} +})