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
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
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
1b1b977fb9
Update nixpkgs
2019-02-25 10:46:51 +01:00
Nicolas Mattia
f89811252f
Only prefetch if URL changed
2019-02-22 18:54:51 +01:00
LeOtaku
e2f7245e18
Fix README spelling/name error
...
"NixOS/nixpkgs-channel" does not actually exist, the correct repo would be "NixOS/nixpkgs-channels"
2019-02-22 17:05:49 +01:00
Nicolas Mattia
a4daa6c967
Declare mapAttrs on old Nix
2019-02-22 11:38:26 +01:00
Nicolas Mattia
a180f5c130
Implement dropping package attr
2019-02-08 19:07:05 +01:00
Nicolas Mattia
45d4ab643a
Drop overlay.nix and add packages.nix
2019-02-07 21:12:39 +01:00
Nicolas Mattia
12dc085e14
Merge pull request #12 from zimbatm/rename-specs
...
rename specs.json to sources.json
2019-02-07 13:46:45 +00: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
3bdc42ab44
Merge pull request #10 from nmattia/nm-pretty-specs
...
Prettify specs.json
2019-02-07 13:19:29 +00:00
Nicolas Mattia
8f03de5944
Prettify specs.json
2019-02-07 14:15:56 +01:00
Nicolas Mattia
dd2d0e01c6
Remove unused options
2019-02-07 14:10:45 +01:00
Nicolas Mattia
9dc0f82867
Rename versions.json
2019-02-05 13:55:34 +01:00
Nicolas Mattia
5e9d9b0695
Restructure Nix dirs
2019-02-03 14:07:42 +01:00
Nicolas Mattia
7605abe20b
Fix Nix code
2019-02-01 15:42:05 +01:00
Nicolas Mattia
9a46895f2e
Enable build warnings
2019-01-31 20:42:39 +01:00
Nicolas Mattia
e54ea0143e
Document CLI flags
2019-01-31 00:05:35 +01:00
Nicolas Mattia
c8d451b153
Generate README from niv
2019-01-30 23:56:35 +01:00
Nicolas Mattia
c66b68e173
Infer homepage from GH
2019-01-30 19:18:41 +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
a22310c12b
Update doc
2019-01-28 22:39:08 +01:00
Nicolas Mattia
db273fdcd8
Document commands
2019-01-28 22:32:36 +01:00
Nicolas Mattia
6e48f731c8
Add proper error messages
2019-01-28 21:51:10 +01:00
Nicolas Mattia
0e142e4ed0
Qualify imports
2019-01-28 21:29:35 +01:00
Nicolas Mattia
dc6fd5af27
Finish init logic
2019-01-28 21:25:09 +01:00
Nicolas Mattia
e5e65efd09
Finish update and add logic
2019-01-27 21:18:10 +01:00
Nicolas Mattia
7628070e98
Add attr discovery
2019-01-26 23:39:38 +01:00
Nicolas Mattia
d2758102b6
Implement parser of packages
2019-01-24 21:58:22 +01:00
Nicolas Mattia
8ceb834aa0
Add basic implementation for cmds
2019-01-23 21:55:26 +01:00
Nicolas Mattia
f3cc2718e1
Implement basic CLI
2019-01-17 23:00:48 +01:00