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

52 Commits

Author SHA1 Message Date
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
Nicolas Mattia
b50a010769 Show version with --version 2020-09-07 16:14:10 +02:00
Nicolas Mattia
38a536e59e Add NIV_OVERRIDE_{...}
This updates the sources.nix to replace the `outPath` field of package
`foo` with the content of envionment variable `NIV_OVERRIDE_foo`. In the
environment variable name, all characters outside of `[a-zA-Z0-9_]` are
escaped to `_`.
2020-08-13 16:26:28 +02:00
Nicolas Mattia
ab9cc41caf Add CI check for formatting 2020-07-24 13:28:11 +02:00
Nicolas Mattia
fc2cd34b83 Use ormolu from nixpkgs 2020-07-23 16:34:50 +02:00
Nicolas Mattia
8e0e8017c5 Replace default.nix with-rec with let 2020-07-23 16:34:50 +02:00
Ben Sima
6bb2a97db7 Add ormolu to dev environment
Closes #221
2020-07-23 16:34:50 +02:00
Nicolas Mattia
f73bf8d584 Add niv add local for local sources 2020-03-31 19:58:43 +02:00
Nicolas Mattia
f2e2502412 Don't IFD when testing README 2020-02-22 19:18:30 +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
Nicolas Mattia
7970bd7770 Use writeShellScript in cabal-upload 2020-01-31 20:30:33 +01:00
Nicolas Mattia
0b2d1dc06e Remove the niv-test executable
This moves the tests into a `tests` section of the `package.yaml`. Otherwise, the `niv-test` is shipped with the actual executable.
2020-01-20 18:12:13 +01:00
Nicolas Mattia
bea7aa52d9 Mention the modify command in README 2020-01-20 16:55:25 +01:00
Nicolas Mattia
461905a70c Only build static executable in top-level niv attribute
This reduces the closure size by about 2G.
2020-01-11 20:01:18 +01:00
zimbatm
f555c9cc5f
ci: add nixpkgs-fmt check 2020-01-02 19:29:38 +01:00
Nicolas Mattia
507d759e9c Add dummy git test 2019-11-30 11:55:35 +01:00
Nicolas Mattia
0a8b4f0ffd Move github tests: tests -> tests/github 2019-11-30 11:42:58 +01:00
Nicolas Mattia
c8b5412835 Add Cmd and split commands 2019-11-30 11:07:45 +01:00
Nicolas Mattia
2663cc56e0 Move GitHub API calls to Niv.GitHub.API 2019-11-30 11:03:12 +01:00
Nicolas Mattia
50134f1aa6 Track sources.nix versions 2019-11-26 21:25:25 +01:00
Nicolas Mattia
7d0a366c0c Extract modules out of Niv.Cli 2019-11-20 17:07:22 +01:00
zimbatm
1cb695fe7e
format with nixpkgs-fmt
I also couldn't help myself to change the `with { ... }` blocks
 to `let ... in` blocks.
2019-11-16 16:08:44 +00:00
Nicolas Mattia
ee19f5f841 Show version in --help 2019-09-23 22:37:17 +02:00
Nicolas Mattia
c57098815e Change termotosvg template 2019-09-08 20:55:18 +02:00
Nicolas Mattia
09d62db86b Prettify logs more 2019-09-08 20:36:40 +02:00
Nicolas Mattia
c95078ee41 Upgrade termtosvg 2019-07-01 16:01:33 +02:00
Nicolas Mattia
d04a684419 Re-add sourceByRegex
Otherwise niv requires a full compilation when any file changes
2019-07-01 16:00:55 +02:00
Nicolas Mattia
7e5edff4c2 Fix package for release 2019-06-18 10:26:03 +02:00
Nicolas Mattia
ed8c23faef
Merge pull request #93 from kubek2k/fixing-build-on-darwin
Fixing the build on darwin by adding those magical ghc flags to clear the global db
2019-06-16 16:08:43 +02:00
Nicolas Mattia
22836aceb1 Describe repls in shell 2019-06-16 09:39:49 +00:00
Michael Peyton Jones
26c7f9104b Add completions and disable profiling 2019-06-16 08:47:52 +00:00
Jakub Janczak
d54f3eae7d Fixing the build on darwin by adding those magical ghc flags to clear the global db (which should not be global, because of nix) - say no more 2019-06-16 10:15:06 +02:00
Domen Kožar
89cef63076
Use gitignore instead of duplicating it's logic 2019-06-15 16:55:58 +02:00
Nicolas Mattia
4b7ce24ad5 Prepare for release 2019-06-13 11:30:13 +02:00
Nicolas Mattia
136a650fb1 Skip svg test 2019-06-12 16:27:59 +02:00
Nicolas Mattia
7bc9e797f8 Fight cabal 2019-06-12 16:26:13 +02:00
Nicolas Mattia
64e80a0cac Move tests to exe 2019-06-12 14:57:21 +02:00
Nicolas Mattia
7789b95124 New update mechanism 2019-06-09 23:04:10 +02:00
Nicolas Mattia
bbbaec4e64 Fix sourceByRegex 2019-05-09 12:43:00 +02:00
Antoine Eiche
64f8845e51 Add tests by mocking GitHub API
The following scenario is tested:
1. niv init
2. niv drop niv
3. niv add nmattia/niv
4. niv update niv
5. niv add foo -v 1 -t 'localhost:3333/foo-v<version>'
2019-04-29 12:06:41 +02:00
Nicolas Mattia
ea9119500d Update README 2019-04-14 23:50:42 +02:00
Nicolas Mattia
9703f53e81 Add SVG to README 2019-04-14 21:11:18 +02:00
Nicolas Mattia
e45c61ecdc Use niv's nix/sources.nix in niv 2019-04-07 19:56:58 +02:00
Nicolas Mattia
60cc94d3e6 Fix shell hook 2019-04-07 12:50:35 +02:00
Nicolas Mattia
262dd9ab21 Replace snack with cabal 2019-04-07 12:29:24 +02:00
Nicolas Mattia
45041fa765 Drop nix/packages.nix 2019-04-05 11:29:26 +02:00
Nicolas Mattia
5e9d9b0695 Restructure Nix dirs 2019-02-03 14:07:42 +01:00
Nicolas Mattia
2fc0566571 Test that README is up-to-date 2019-02-01 15:56:05 +01:00
Nicolas Mattia
c8d451b153 Generate README from niv 2019-01-30 23:56:35 +01:00
Nicolas Mattia
7de683e33b Update deps 2019-01-30 18:50:09 +01:00