Commit Graph

14 Commits

Author SHA1 Message Date
Sergei Trofimovich
af938ef5d6 scalafix.tests: fix eval
Without the change `tests` eval fails as:

    $ nix build --no-link -f. scalafix.tests
    error:
       … from call site
         at pkgs/development/tools/scalafix/default.nix:42:21:
           41|     passthru.tests = {
           42|       testVersion = testers.testVersion {
             |                     ^
           43|         program = "${finalAttrs.pname}";

       error: function 'testVersion' called without required argument 'package'
       at pkgs/build-support/testers/default.nix:59:5:
           58|   testVersion =
           59|     { package,
             |     ^
           60|       command ? "${package.meta.mainProgram or package.pname or package.name} --version",
2024-04-22 07:56:30 +01:00
hakan-demirli
1076af3b62 use passthru tests 2024-04-18 10:21:18 +03:00
hakan-demirli
5e14111810
add sourceProvenance
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
2024-04-18 09:46:37 +03:00
hakan-demirli
1bbd8501ee
use finalAttrs instead of rec 2024-04-09 05:50:57 +03:00
hakan-demirli
7bdb28f355 feat: bump scalafix to 12.0 2024-04-05 22:14:29 +03:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Will Dietz
4558d28cfc
scalafix: 0.9.0 -> 0.10.0, completions, setup-hook instead of jdk (#171074)
* scalafix: 0.9.0 -> 0.10.0

Bump scala version 2.12.7 -> 2.13.8 (latest AFAICT), as well.

Prefer hash format that matches what nix outputs these days
for easier updating.

* scalafix: shell completion (bash, zsh)

* scalafix: use setJavaClassPath, drop jdk dep

No need to pull in entire JDK just to use the setup-hook.
2022-05-02 21:34:51 -05:00
Fabián Heredia Montiel
fc6ccc25cc treewide: fix /bin/coursier references
After https://github.com/NixOS/nixpkgs/pull/142254 coursier provides its
binary as /bin/cs rather than /bin/coursier
2021-10-28 19:48:29 -05:00
Felix Buehler
4a7e4dd645 scalafix: deprecate phases and use pname&version 2021-07-25 01:27:41 +02:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Kevin Rauscher
0c05fb262a scalafix: init at 0.9.0 2018-10-28 10:10:37 +01:00