1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-16 01:47:08 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
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
bb010g
e9e31a7248 foo: stdenv.lib -> lib
Fixes evaluation with newer Nixpkgs.
2021-06-14 16:57:37 +02:00
Georges Dubus
2d1947ddaf Fix foo to get back static executable
The `overrideCabal` mechanism, used to provide static executables, requires the `mkDerivation` argument in `callPackage` to be actually used. `foo/default.nix` currently ignores this argument, so this broke the static executable override.
2020-02-25 17:46:35 +01:00
Nicolas Mattia
140dd34d49 Get rid of cabal2nix
The `callCabal2nix` invocation caused `cabal2nix` to be downloaded on
every install of `niv`. This introduces `foo`, a Nix function that does
exactly the same.
2020-02-22 18:43:04 +01:00