1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-19 11:27:40 +03:00
Commit Graph

51 Commits

Author SHA1 Message Date
Ben Sima
6bb2a97db7 Add ormolu to dev environment
Closes #221
2020-07-23 16:34:50 +02:00
Nicolas Mattia
fb1716a9c8 Update to nixpkgs 20.03 2020-07-07 17:07:02 +02:00
Nicolas Mattia
f73bf8d584 Add niv add local for local sources 2020-03-31 19:58:43 +02:00
Nicolas Mattia
372f96bff2 Prettify the derivation name in tarballs
The derivation name for package `foo` of type `tarball` is now `foo-src`
as opposed to `source`.
2020-03-27 12:03:14 +01:00
Nicolas Mattia
89e6f36b6f Retire builtin-tarball and builtin-url 2020-03-26 18:08:44 +01:00
Nicolas Mattia
13598ef956 Don't needlessly evaluate <nixpkgs>
This changes the logic to make sure the first `if` branch -- which pulls nixpkgs from sources.json -- is evaluated first. Moreover the `<nixpkgs>` check is changed to avoid actually evaluating `<nixpkgs>`.
2020-01-17 11:33:07 +01:00
Nicolas Mattia
0e460c49de Allow setting custom pkgs 2020-01-07 15:17:37 +01:00
zimbatm
2f2ee45a08
nixpkgs-fmt 2020-01-03 10:41:22 +01:00
zimbatm
f555c9cc5f
ci: add nixpkgs-fmt check 2020-01-02 19:29:38 +01:00
Nicolas Mattia
66a28898b0 Update nixpkgs 2019-12-16 14:58:18 +01:00
Christian Kampka
ec254c6853
init at 19.09 2019-12-16 14:44:29 +01:00
Nicolas Mattia
0d10454ebb Cleanup sources.nix 2019-12-08 20:39:45 +01:00
Nicolas Mattia
3e1d44bbfa Allow specifying custom sources.json
This turns `sources.nix` into a functor that acceps an argument:

``` nix
{ sourcesJson = <path/to/sources.json> ; }
```

The `sourcesJson` will be used instead of `./sources.json`.
2019-12-08 20:29:15 +01:00
Nicolas Mattia
dfc838aba2 Parse ref and rev in git 2019-11-30 12:36:23 +01:00
Nicolas Mattia
45a6020028 Add experimental (working) implementation of git specs 2019-11-30 12:22:27 +01:00
Nicolas Mattia
3ecde0148f Fix error message in sources.nix 2019-11-30 12:15:09 +01:00
Nicolas Mattia
e4ea8de1c5 Fix wording in comment 2019-11-28 09:56:41 +01:00
Nicolas Mattia
2e2e9eae97 Fix typo in error message 2019-11-28 09:56:41 +01:00
Nicolas Mattia
5271115a45 Remove TODOs 2019-11-28 09:56:41 +01:00
Nicolas Mattia
d9e35d67d8 Refactor fetchers 2019-11-28 09:56:41 +01:00
Nicolas Mattia
bd1aeb0a9c sources.nix: with -> let 2019-11-28 09:56:41 +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
a014fb3630 Fix functionArgs issue on recent nixpkgs 2019-09-23 13:42:58 +02:00
Nicolas Mattia
5111f83ed3 Add update script 2019-09-09 20:35:49 +02:00
Nicolas Mattia
c95078ee41 Upgrade termtosvg 2019-07-01 16:01:33 +02:00
Nicolas Mattia
3afc53fd0d nixpkgs: 18.09 -> 19.03 2019-06-26 11:27:13 +02:00
Domen Kožar
89cef63076
Use gitignore instead of duplicating it's logic 2019-06-15 16:55:58 +02:00
Michael Peyton Jones
96afc24d7e Make builtin-tarball the default 2019-06-01 13:04:16 +02:00
Michael Peyton Jones
0c48736b06 Support more types, including builtins 2019-06-01 13:04:16 +02:00
Nicolas Mattia
71000dc8b9 Drop unused file 2019-05-09 12:52:55 +02:00
Nicolas Mattia
9703f53e81 Add SVG to README 2019-04-14 21:11:18 +02:00
Nicolas Mattia
b638632993 Improve error message when no nixpkgs 2019-04-10 23:10:46 +02:00
Nicolas Mattia
3cd02da1ce Fix sources.nix for empty and ./. <nixpkgs> 2019-04-07 19:56:40 +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
beb274c094 Add test suite instructions to README'
'
2019-03-01 10:24:15 +01:00
Nicolas Mattia
1b1b977fb9 Update nixpkgs 2019-02-25 10:46:51 +01:00
Nicolas Mattia
aa848bf39a Update README 2019-02-08 19:29:48 +01:00
Nicolas Mattia
a180f5c130 Implement dropping package attr 2019-02-08 19:07:05 +01:00
zimbatm
4c78b665f4 rename specs.json to sources.json
The goal is to group the two files that go together so they don't get
lost in the sea of all the other files in the nix/ folder.
2019-02-07 14:40:56 +01: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
588c5fe339 Update deps 2019-01-31 20:42:29 +01:00
Nicolas Mattia
491a449523 Proper sources.nix 2019-01-31 19:05:00 +01:00
Nicolas Mattia
c8d451b153 Generate README from niv 2019-01-30 23:56:35 +01:00
Nicolas Mattia
703d1b6408 Update deps 2019-01-30 19:43:13 +01:00
Nicolas Mattia
7de683e33b Update deps 2019-01-30 18:50:09 +01:00
Nicolas Mattia
a522f49a90 Udpate build code 2019-01-30 18:42:14 +01:00
Nicolas Mattia
e1231e1341 Clean up nix files 2019-01-28 19:48:51 +01:00
Nicolas Mattia
e5e65efd09 Finish update and add logic 2019-01-27 21:18:10 +01:00