1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-25 09:56:49 +03:00
Commit Graph

438 Commits

Author SHA1 Message Date
Martin Weinelt
7225521219
Update the default nixpkgs to a rolling release (#369)
For security reasons niv should not initialize with a potentially
outdated nixpkgs, that won't receive updates when even when the user
calls `niv update`.
2023-04-26 14:42:25 +02:00
Nicolas Mattia
ecabfde837 Release 0.2.22 2023-03-12 12:44:53 +01:00
Victor Engmark
f275964bb0
refactor: statix recommendations (#363)
* refactor: Inherit where possible

As recommended by `statix check`.

* refactor: Remove unnecessary parentheses

As recommended by `statix check`.

* refactor: Remove unnecessary comparison with `true`

As recommended by `statix check`.

* refactor: Avoid using deprecated `isNull`

As recommended by `statix check` and the documentation
<https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull>.

* refactor: Simplify conditionals

As recommended by `statix check`.

* Update sources version

---------

Co-authored-by: Nicolas Mattia <nicolas@nmattia.com>
2023-03-12 12:41:42 +01:00
Nicolas Mattia
de5a4e7d01
Update devshell (#367)
* Update devshell

Update nixpkgs and simplify devshell

* Run ormolu

* Fixups

* Format nix files

* Update sources
2023-03-11 22:16:53 +01:00
dependabot[bot]
320689d737 Bump cachix/cachix-action from 10 to 12
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 10 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v12)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 16:22:26 +01:00
Victor Engmark
40482f05b5 feat: Configure Dependabot for GitHub Actions
Automatically creates PRs for any updated third-party actions.
2023-03-07 10:57:24 +01:00
Victor Engmark
d13000fcea fix: Bump cachix install action
See <https://github.com/cachix/install-nix-action/issues/161>.
2023-03-07 10:27:49 +01:00
Nicolas Mattia
689d0e5539 Update formatting 2022-12-20 11:39:08 +01:00
Nicolas Mattia
6b6fffd73e Update nixpkgs 2022-12-20 11:39:08 +01:00
Nicolas Mattia
0b7666effa Add motivation paragraph to 'Getting Started' 2022-12-20 11:33:53 +01:00
Nicolas Mattia
351d8bc316 Update workflows 2022-10-15 18:04:22 +02:00
Jan Tojnar
acdb172678 Fix GH rate-limiting link 2022-10-11 09:24:39 +02:00
Nicolas Mattia
82e5cd1ad3 Release 0.2.21 2022-05-06 18:02:31 +02:00
Jacek Galowicz
945aa20cd0 Fetch submodules if supported, and warn if submodules are used but not supported 2022-04-27 22:27:24 +02:00
Nicolas Mattia
df49d53b71 Release 0.2.20 2022-04-04 19:06:43 +02:00
Troels Henriksen
2998a663d0 Make tests work with newest Nix. 2022-03-29 13:05:18 +02:00
Troels Henriksen
81192ec553 Fix formatting. 2022-03-29 13:05:18 +02:00
Troels Henriksen
533d1ba912 Fix Nix setup to use aeson 2.
This also bumps the Nixpkgs snapshot.

Hopefully all the gross overrides will go away once aeson 2 becomes
the default in Nixpkgs.
2022-03-29 13:05:18 +02:00
Troels Henriksen
9d09779ad1 Work with (only) aeson 2. 2022-03-29 13:05:18 +02:00
Troels Henriksen
5912c378c2 Fix GitHub Actions badge.
Previously it just linked to an image of itself.
2022-03-21 15:06:09 +01:00
Nikola Knezevic
b8202cb275 fix: use the same nix path as scripts 2022-03-21 14:01:51 +01:00
Nikola Knezevic
768210efbe Remove custom github actions
This change removes custom github actions and switches to using
install-nix-action.
2022-03-21 14:01:51 +01:00
Nikola Knezevic
788289706e fix: formatting error in sources.nix
This change fixes the issue with sources.nix file that's been failing in
CI. The format was fixed by running `nixpkgs-fmt .` inside of the
nix-shell.
2022-03-21 12:59:38 +01:00
George Shammas
9cb7ef336b Add the ability to pass submodules to builtins.fetchGit 2022-02-07 18:58:44 +01:00
Nicolas Mattia
5830a4dd34 Fix nix.conf 2021-11-08 12:58:57 +01:00
Nicolas Mattia
a751be0775 Workaround nix-shell silliness 2021-11-08 12:58:57 +01:00
Nicolas Mattia
0ff60d5b09 Ad extra-experimental-features 2021-11-08 12:58:57 +01:00
Nicolas Mattia
19545d3926 Bump nixpkgs 2021-11-08 12:58:57 +01:00
Martin Lavoie
65a61b147f Update documentation
- Use more recent exemples
- Update obsolete sections
- Add information about the different ways of using niv sources
2021-09-18 22:52:29 +02:00
Nicolas Mattia
e0ca65c81a examples: stdenv.lib -> lib 2021-06-15 13:44:02 +02:00
bb010g
e9e31a7248 foo: stdenv.lib -> lib
Fixes evaluation with newer Nixpkgs.
2021-06-14 16:57:37 +02:00
Nicolas Mattia
527494090f Speed up initialization
This speeds up the `niv init` command by getting rid of
`nix-prefetch-url` calls (by default). In particular:
* `niv` itself is not added anymore
* `nixpkgs` is fetched from a "known" version
2021-06-07 18:03:50 +02:00
Nicolas Mattia
1819632b58 Update nixpkgs 2021-05-28 14:48:33 +02:00
Nicolas Mattia
94080ae828 Update to latest optparse-applicative 2021-05-11 14:36:18 +02:00
Nicolas Mattia
af958e8057 Update README template 2021-02-04 09:40:18 +01:00
kfollesdal
cd7bb81154 Fix README example 2021-02-04 09:39:01 +01:00
Ömer Sinan Ağacan
3cd7914b2c Slightly refactor renderTemplate to support newer GHCs
This refactoring makes the package build with both the currently
supported GHC (8.6.5) and newer ones (notably 8.10, I haven't tried with
8.8).
2021-01-14 10:19:19 +01:00
Nicolas Mattia
18b7314c13 Remove warnGitHubEnvVars 2021-01-11 20:10:03 +01:00
Nikola Knezevic
94dadba1a3 Start testing on Ubuntu 20.04
GitHub will soon change `ubuntu-latest` label to refer to Ubuntu 20.04:

https://github.blog/changelog/2020-10-29-github-actions-ubuntu-latest-workflows-will-use-ubuntu-20-04/

Thus, to ensure `niv` will work there as well, this adds a matrix run on
ubuntu-20.04.
2021-01-08 16:38:56 +01:00
Nikola Knezevic
071dbac5b3 Fix GitHub action to publish to cachix
GitHub has deprecated setting the environment variables and paths via
echoing to the stdout:

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Thus, this PR brings the code up to data with the recommendations in the
linked post. In short, paths are exposed to subsequent steps by
appending to the file named in `$GITHUB_PATH`, while environment
variables are set by appending `name=value` to the file named in
`$GITHUB_ENV`.
2021-01-08 16:28:33 +01:00
Nicolas Mattia
62fcf7d085 Release 0.2.19 2021-01-05 11:55:20 +01:00
Nicolas Mattia
d91c8b8051 Add flag for --no-colors 2021-01-05 11:51:20 +01:00
Nicolas Mattia
ba57d5a29b Clarify Git error on missing branch
Whereas before niv would simply say that git didn't produce any output,
it now points out that the branch may not exist:

```
*Niv> :main add git git@github.com:nmattia/niv -b foobar
Adding package niv
  FATAL: Could not read the output of 'git'.
  command: git ls-remote git@github.com:nmattia/niv refs/heads/foobar
  Git didn't produce any output. Does the branch 'foobar' exist?
  FATAL: One or more packages failed to update:
  niv: ExitFailure 1
ERROR: ExitFailure 1
*** Exception: ExitFailure 1
```
2020-11-06 15:59:58 +01:00
Eric Wolf
20c899271f Fix README* 2020-11-02 14:42:14 +01:00
Eric Wolf
205240c278 Remove stray uncompleted sentence 2020-11-02 14:42:14 +01:00
Eric Wolf
45faf8f331 Update README.md 2020-11-02 14:42:14 +01:00
Eric Wolf
c3159e7c9e Update CHANGELOG.md 2020-11-02 14:42:14 +01:00
Eric Wolf
497807b317 Respect type attribute 2020-11-02 14:42:14 +01:00
Nicolas Mattia
9d35b9e483 Turn NIV_OVERRIDE values into paths
Otherwise they're not accessible from the sandbox.
2020-10-05 11:39:37 +02:00
Nicolas Mattia
29ddaaf4e0 Release 0.2.18 2020-09-17 13:32:07 +02:00