Michael Peyton Jones
3891f80bf5
Abort more gracefully if the source files don't exist
...
Fixes #59 .
2019-05-23 19:00:42 +01:00
Nicolas Mattia
5d9e3a5f7d
Merge pull request #55 from nmattia/nm-test
...
Massage tests a bit
2019-05-09 12:58:04 +02:00
Nicolas Mattia
71000dc8b9
Drop unused file
2019-05-09 12:52:55 +02:00
Nicolas Mattia
bbbaec4e64
Fix sourceByRegex
2019-05-09 12:43:00 +02:00
Nicolas Mattia
f29f7883d3
Test massage
2019-05-09 12:35:09 +02:00
Nicolas Mattia
e5e441998e
Merge pull request #53 from nmattia/lewo-trailing
...
Add a trailing new line to the sources.json file
2019-04-30 14:22:13 +02:00
Antoine Eiche
b1f3365c5a
Add a trailing new line to the sources.json file
...
Just because VCS and editors can emit warnings on files without a
trailing new line.
2019-04-30 09:33:00 +02:00
Nicolas Mattia
9ef6a381fc
Merge pull request #54 from nmattia/lewo-tests
...
Add tests by mocking GitHub API
2019-04-29 13:02:26 +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
a489b65a5c
Merge pull request #50 from nmattia/nm-update-link
...
Fix netlify link
2019-04-15 22:57:36 +02:00
Nicolas Mattia
abc5144940
Fix netlify link
2019-04-15 15:17:37 +02:00
Nicolas Mattia
cbadb8355c
Merge pull request #49 from nmattia/nm-update-readme
...
Update README
2019-04-15 00:41:09 +02:00
Nicolas Mattia
ea9119500d
Update README
2019-04-14 23:50:42 +02:00
Nicolas Mattia
aedf42ae0a
Merge pull request #48 from nmattia/nm-svg
...
Add SVG to README
2019-04-14 21:18:09 +02:00
Nicolas Mattia
9703f53e81
Add SVG to README
2019-04-14 21:11:18 +02:00
Nicolas Mattia
7aa070d8b3
Merge pull request #47 from nmattia/nm-missing-repo
...
Warn if GitHub repository cannot be read
2019-04-11 09:57:24 +02:00
Nicolas Mattia
cd9206daf0
Warn if GitHub repository cannot be read
2019-04-10 23:27:12 +02:00
Nicolas Mattia
29e351ce67
Merge pull request #45 from nmattia/nm-fix-nixpkgs-fetch
...
Fix infinite recursion and empty nixpkgs
2019-04-10 23:14:43 +02:00
Nicolas Mattia
b638632993
Improve error message when no nixpkgs
2019-04-10 23:10:46 +02:00
Nicolas Mattia
e45c61ecdc
Use niv's nix/sources.nix in niv
2019-04-07 19:56:58 +02:00
Nicolas Mattia
3cd02da1ce
Fix sources.nix for empty and ./. <nixpkgs>
2019-04-07 19:56:40 +02:00
Nicolas Mattia
af92a311c9
Merge pull request #44 from nmattia/nm-no-cache
...
Drop the cache
2019-04-07 13:09:12 +02:00
Nicolas Mattia
0491c8a4e8
Merge pull request #43 from nmattia/nm-sources-cleanup
...
Only generate nix/sources.json and nix/sources.nix
2019-04-07 13:06:15 +02:00
Nicolas Mattia
8b1b890b43
Drop the cache
...
Right now warming up and saving the cache takes more time than the build
itself.
2019-04-07 13:05:33 +02:00
Nicolas Mattia
13f81059c0
Drop lots of generated files
2019-04-07 12:50:47 +02:00
Nicolas Mattia
60cc94d3e6
Fix shell hook
2019-04-07 12:50:35 +02:00
Nicolas Mattia
130ac83460
Merge pull request #41 from nmattia/nm-nix-cleanup
...
Replace snack with cabal
2019-04-07 12:41:41 +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
d9e38ae971
Merge pull request #40 from nmattia/nm-build-cleanup
...
Clean up CI build
2019-04-04 13:19:33 +02:00
Nicolas Mattia
5b68e37388
Simplify CI cache
2019-04-04 13:04:16 +02:00
Nicolas Mattia
3185f8a32b
Don't generate links in test script
2019-04-04 12:32:51 +02:00
Nicolas Mattia
f57c85d05e
Merge pull request #38 from domenkozar/patch-1
...
Too much Nix
2019-03-28 10:24:30 +01:00
Domen Kožar
86eb9881b8
Too much Nix
2019-03-28 07:43:32 +00:00
Nicolas Mattia
c2698b0780
Merge pull request #30 from nmattia/nm-update-sources
...
Update nix/sources.nix if necessary
2019-03-21 20:56:07 +01:00
Nicolas Mattia
fbaed6d725
Clean up
2019-03-13 12:59:41 +01:00
lewo
956f976f5b
Update Main.hs
...
Co-Authored-By: nmattia <nicolas@nmattia.com>
2019-03-13 12:54:10 +01:00
Nicolas Mattia
fed62f31e5
Update nix/sources.nix if necessary
2019-03-13 12:54:10 +01:00
Nicolas Mattia
fc58efb5ed
Merge pull request #33 from nlewo/cleaning
...
sources.nix: cleaning
2019-03-13 12:52:41 +01:00
Antoine Eiche
4c6b3c2451
sources.nix: cleaning
...
- Remove fetchTarball which is dead code
- Add a header comment specifying sources.nix is a generated file
2019-03-12 11:37:24 +01:00
Nicolas Mattia
82bd4999de
Merge pull request #29 from nlewo/restricted-eval
...
Support restricted evaluation mode
2019-03-05 19:26:57 +01:00
Nicolas Mattia
3386273b6e
Merge pull request #27 from nlewo/fetcher
...
Add `fetcher` options
2019-03-05 18:59:22 +01:00
Antoine Eiche
1ab9746679
Allow sources.nix expression to be evaluated with the restricted mode
...
When the Nix restricted evaluation mode is enable, `builtins.fetch*`
functions can no longer be used. So, instead of using `builtins`
fetchers, we use fetchers from nixpkgs.
Note Hydra enables the restricted evaluation mode by default.
2019-03-04 18:39:26 +01:00
Antoine Eiche
d23a8626a0
Add the attribute 'type' to set the package URL type
...
The main objective is to be able to fetch packages that are just a file
which was not possible.
The value of this attribute is either 'file' or 'tarball'. By default,
the value of this attribute is inferred by using the suffix of the
URL. If the URL ends with 'tar.gz' the type is set to 'tarball',
otherwise it is 'file'.
This attribute is used by the Nix expression to select the appropriate
fetcher ('fetchurl' or 'fetchTarball') and by `nix-prefetch-url` to
set or not the `--unpack` flag.
2019-03-01 18:05:22 +01:00
Nicolas Mattia
7f72d723d0
Merge pull request #28 from nmattia/nm-readme-test
...
Add test suite instructions to README
2019-03-01 10:27:51 +01:00
Nicolas Mattia
beb274c094
Add test suite instructions to README'
...
'
2019-03-01 10:24:15 +01:00
Nicolas Mattia
47cd53f704
Merge pull request #26 from nmattia/nm-update-snack
...
Update nixpkgs
2019-02-25 10:56:46 +01:00
Nicolas Mattia
1b1b977fb9
Update nixpkgs
2019-02-25 10:46:51 +01:00
Nicolas Mattia
84692d2123
Merge pull request #24 from nmattia/nm-update-on-changed
...
Only prefetch if URL changed
2019-02-23 12:06:07 +01:00
Nicolas Mattia
f89811252f
Only prefetch if URL changed
2019-02-22 18:54:51 +01:00