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

94 Commits

Author SHA1 Message Date
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
Nicolas Mattia
e77d69071a
Merge pull request #22 from LeOtaku/patch-1
Fix README spelling/name error
2019-02-22 17:06:39 +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
a75cdd6312
Merge pull request #21 from nmattia/nm-map-attrs
Declare mapAttrs on old Nix
2019-02-22 11:43:40 +01:00
Nicolas Mattia
a4daa6c967 Declare mapAttrs on old Nix 2019-02-22 11:38:26 +01:00
Nicolas Mattia
cdfa7b9a27 Add related work 2019-02-13 10:26:16 +01:00
Nicolas Mattia
501494fc90
Merge pull request #17 from nmattia/nm-readme
README fixup
2019-02-11 20:28:15 +00:00
Nicolas Mattia
4ff7a37f12 README fixup 2019-02-11 21:23:39 +01:00
Nicolas Mattia
8eccea34c4 Don't fail on cache failure 2019-02-11 21:22:10 +01:00
Nicolas Mattia
72e7720454
Merge pull request #16 from nmattia/nm-use-cases
Add use cases to README
2019-02-11 20:03:13 +00:00
Nicolas Mattia
8eee86454e Update README 2019-02-11 20:58:47 +01:00
Nicolas Mattia
e571ba0411 Update README 2019-02-11 20:54:27 +01:00
zimbatm
0fa7137245 Update README.md
Co-Authored-By: nmattia <nicolas@nmattia.com>
2019-02-11 20:52:35 +01:00
zimbatm
b5f1095f67 Update README.md
Co-Authored-By: nmattia <nicolas@nmattia.com>
2019-02-11 20:51:56 +01:00
Nicolas Mattia
b7b71f1d98 Add use cases to README 2019-02-11 20:33:10 +01:00
Nicolas Mattia
c45fa00479
Merge pull request #15 from nmattia/nm-update-readme
Update README
2019-02-08 18:32:53 +00:00
Nicolas Mattia
aa848bf39a Update README 2019-02-08 19:29:48 +01:00
Nicolas Mattia
697d66c96a
Merge pull request #14 from nmattia/nm-drop-attr
Implement dropping package attr
2019-02-08 18:11:37 +00:00
Nicolas Mattia
a180f5c130 Implement dropping package attr 2019-02-08 19:07:05 +01:00
Nicolas Mattia
497d602e36
Merge pull request #13 from nmattia/nm-packages-nix
Drop overlay.nix and add packages.nix
2019-02-07 20:51:00 +00: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
8897b8998e
Merge pull request #11 from nmattia/nm-test
Remove unused options
2019-02-07 13:18:17 +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
9887f05524
Merge pull request #8 from nmattia/nm-install-instr
Add install instructions
2019-02-05 14:55:39 +00:00
Nicolas Mattia
268c6eb936 Add install instructions 2019-02-05 15:43:37 +01:00