mirror of
https://github.com/Mic92/nix-update.git
synced 2024-07-14 22:10:31 +03:00
apply treefmt
This commit is contained in:
parent
0bf780a408
commit
975713d4c4
68
README.md
68
README.md
@ -5,25 +5,25 @@ designed to work with nixpkgs but also other package sets.
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- automatically figure out the latest version of packages from:
|
- automatically figure out the latest version of packages from:
|
||||||
- codeberg.org
|
- codeberg.org
|
||||||
- crates.io
|
- crates.io
|
||||||
- gitea.com
|
- gitea.com
|
||||||
- github.com
|
- github.com
|
||||||
- gitlab.com or other instances that uses fetchFromGitLab
|
- gitlab.com or other instances that uses fetchFromGitLab
|
||||||
- notabug.org
|
- notabug.org
|
||||||
- pypi
|
- pypi
|
||||||
- rubygems.org
|
- rubygems.org
|
||||||
- update buildRustPackage's cargoHash/cargoSha256 and cargoSetupHook's cargoDeps
|
- update buildRustPackage's cargoHash/cargoSha256 and cargoSetupHook's cargoDeps
|
||||||
- update buildGoModule's vendorHash/vendorSha256
|
- update buildGoModule's vendorHash/vendorSha256
|
||||||
- update buildNpmPackage's npmDepsHash and npmConfigHook's npmDeps
|
- update buildNpmPackage's npmDepsHash and npmConfigHook's npmDeps
|
||||||
- update flake outputs (see `--flake`)
|
- update flake outputs (see `--flake`)
|
||||||
- build and run the resulting package (see `--build`,
|
- build and run the resulting package (see `--build`,
|
||||||
`--run` or `--shell`
|
`--run` or `--shell`
|
||||||
- commit updated files (see `--commit` flag)
|
- commit updated files (see `--commit` flag)
|
||||||
- run update scripts (`passthru.updateScript`, see `--use-update-script` flag)
|
- run update scripts (`passthru.updateScript`, see `--use-update-script` flag)
|
||||||
- run package tests (see `--test` flag)
|
- run package tests (see `--test` flag)
|
||||||
- specify the system to use (see `--system` flag)
|
- specify the system to use (see `--system` flag)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ $ nix-update jq --version-regex 'jq-(.*)'
|
|||||||
By default `nix-update` will locate the file that needs to be patched using the `src` attribute of a derivation.
|
By default `nix-update` will locate the file that needs to be patched using the `src` attribute of a derivation.
|
||||||
In some cases this heurestic is wrong. One can override the behavior like that:
|
In some cases this heurestic is wrong. One can override the behavior like that:
|
||||||
|
|
||||||
``` console
|
```console
|
||||||
$ nix-update hello --override-filename pkgs/applications/misc/hello/default.nix
|
$ nix-update hello --override-filename pkgs/applications/misc/hello/default.nix
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -126,8 +126,8 @@ from https://updates.signal.org/, but also publishes release information on its
|
|||||||
GitHub page. In such cases, use the `--url` parameter to direct nix-update to
|
GitHub page. In such cases, use the `--url` parameter to direct nix-update to
|
||||||
the correct repository:
|
the correct repository:
|
||||||
|
|
||||||
``` console
|
```console
|
||||||
nix-update --url https://github.com/signalapp/Signal-Desktop --override-filename pkgs/applications/networking/instant-messengers/signal-desktop/default.nix signal-desktop
|
nix-update --url https://github.com/signalapp/Signal-Desktop --override-filename pkgs/applications/networking/instant-messengers/signal-desktop/default.nix signal-desktop
|
||||||
```
|
```
|
||||||
|
|
||||||
With the `--shell`, `--build`, `--test` and `--run` flags the update can be
|
With the `--shell`, `--build`, `--test` and `--run` flags the update can be
|
||||||
@ -135,7 +135,7 @@ tested. Additionally, the `--review` flag can be used to
|
|||||||
initiate a run of [nixpkgs-review](https://github.com/Mic92/nixpkgs-review), which will ensure all
|
initiate a run of [nixpkgs-review](https://github.com/Mic92/nixpkgs-review), which will ensure all
|
||||||
dependent packages can be built. In order to ensure consistent
|
dependent packages can be built. In order to ensure consistent
|
||||||
formatting, the `--format` flag will invoke
|
formatting, the `--format` flag will invoke
|
||||||
[nixpkgs-fmt](<https://github.com/nix-community/nixpkgs-fmt>).
|
[nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt).
|
||||||
|
|
||||||
```console
|
```console
|
||||||
# Also runs nix-build
|
# Also runs nix-build
|
||||||
@ -205,8 +205,8 @@ $ ~/git/nix-update/bin/nix-update --commit hello
|
|||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- create pull requests
|
- create pull requests
|
||||||
- update unstable packages from git to latest master
|
- update unstable packages from git to latest master
|
||||||
|
|
||||||
## Known Bugs
|
## Known Bugs
|
||||||
|
|
||||||
@ -214,18 +214,18 @@ nix-update might not work correctly if a file contain multiple packages
|
|||||||
as it performs naive search and replace to update version numbers. This
|
as it performs naive search and replace to update version numbers. This
|
||||||
might be a problem if:
|
might be a problem if:
|
||||||
|
|
||||||
- A file contains the same version string for multiple packages.
|
- A file contains the same version string for multiple packages.
|
||||||
- `name` is used instead of `pname` and/or `${version}` is injected into `name`.
|
- `name` is used instead of `pname` and/or `${version}` is injected into `name`.
|
||||||
|
|
||||||
Related discussions:
|
Related discussions:
|
||||||
|
|
||||||
- <https://github.com/repology/repology-updater/issues/854>
|
- <https://github.com/repology/repology-updater/issues/854>
|
||||||
- <https://github.com/NixOS/nixpkgs/issues/68531#issuecomment-533760929>
|
- <https://github.com/NixOS/nixpkgs/issues/68531#issuecomment-533760929>
|
||||||
|
|
||||||
## Related projects:
|
## Related projects:
|
||||||
|
|
||||||
- [nixpkgs-update](https://github.com/ryantm/nixpkgs-update) is
|
- [nixpkgs-update](https://github.com/ryantm/nixpkgs-update) is
|
||||||
optimized for mass-updates in nixpkgs while nix-update is better
|
optimized for mass-updates in nixpkgs while nix-update is better
|
||||||
suited for interactive usage that might require user-intervention
|
suited for interactive usage that might require user-intervention
|
||||||
i.e. fixing the build and testing the result. nix-update is also not
|
i.e. fixing the build and testing the result. nix-update is also not
|
||||||
limited to nixpkgs.
|
limited to nixpkgs.
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
},
|
},
|
||||||
"lockFileMaintenance": { "enabled": true }
|
"lockFileMaintenance": { "enabled": true }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ lib
|
{ fetchFromGitHub
|
||||||
, fetchFromGitHub
|
|
||||||
, buildNpmPackage
|
, buildNpmPackage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, gamin }:
|
{ stdenv, fetchurl, gamin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fileschanged";
|
pname = "fileschanged";
|
||||||
|
Loading…
Reference in New Issue
Block a user