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
b0e3ca55a9
ci: run script/fmt in the nix environment
2020-07-23 16:34:50 +02:00
Ben Sima
b066716ced
Add script/fmt to GitHub CI job
2020-07-23 16:34:50 +02:00
Ben Sima
7572ac8ddb
Add a formatting script
...
This way you can just do `script/fmt -i` during development, or use -c
in a CI job for the PR.
The help message is from: https://samizdat.dev/help-message-for-shell-scripts/
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
3c7cecd8e6
Show command when nix-prefetch-url fails
2020-07-23 15:34:31 +02:00
Nicolas Mattia
5f35efd949
Fix logline
2020-07-23 15:34:31 +02:00
Nicolas Mattia
febd3530f0
Update installation instructions
...
Now that niv is part of nixpkgs, the installation is much simpler.
2020-07-15 15:22:39 +02:00
Nicolas Mattia
e5f7c0a4d3
Release 0.2.14
2020-07-15 14:34:14 +02:00
Nicolas Mattia
99771dd10d
Use release-20.03 by default
2020-07-15 14:05:45 +02:00
Nicolas Mattia
a78983cd55
Explain YesNixpkgs argument
2020-07-15 14:05:45 +02:00
Nicolas Mattia
79b6cc4d76
Factor out default nixpkgs branch
2020-07-15 14:05:45 +02:00
Sarah Brofeldt
0f50051d3c
Drop nixpkgs-channels in README, usage and examples
2020-07-13 21:59:11 +02:00
Sarah Brofeldt
2521c74b8b
Change default repo to NixOS/nixpkgs
...
Also use defaultNixpkgsUser and defaultNixpkgsRepo in the options parser
2020-07-13 21:59:11 +02:00
Nicolas Mattia
c27f5a6c57
Allow custom nixpkgs
...
This adds a few configuration options to `niv init`:
* `--no-nixpkgs`: skips the import of nixpkgs
* `--nixpkgs-branch`: specifies the branch to use for nixpkgs
* `--nixpkgs`: specifies the repo to use for nixpkgs
NOTE: this changes the default nixpkgs branch from nixos-19.09 to
release-19.09.
2020-07-07 17:36:52 +02:00
Nicolas Mattia
fb1716a9c8
Update to nixpkgs 20.03
2020-07-07 17:07:02 +02:00
Nicolas Mattia
dd17834c49
Add FAQ section to README
...
... and answer how to add a private repository.
2020-07-06 14:57:17 +02:00
Nicolas Mattia
0fe342db13
Update nix GitHub action
2020-07-06 14:46:34 +02:00
Nicolas Mattia
66e79bc38a
Define Cachix signing key in action
2020-07-06 14:46:34 +02:00
Nicolas Mattia
2818ce648c
Fix macOS build
2020-07-06 14:46:34 +02:00
Nicolas Mattia
f73bf8d584
Add niv add local for local sources
2020-03-31 19:58:43 +02:00
Nicolas Mattia
5b5508f855
Consider .tgz as .tar.gz
2020-03-30 21:38:55 +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
98c74a8093
Make sure CACHIX_SIGNING_KEY is bound
2020-02-25 18:28:51 +01:00
Georges Dubus
2d1947ddaf
Fix foo to get back static executable
...
The `overrideCabal` mechanism, used to provide static executables, requires the `mkDerivation` argument in `callPackage` to be actually used. `foo/default.nix` currently ignores this argument, so this broke the static executable override.
2020-02-25 17:46:35 +01:00
Nicolas Mattia
5fc9a36c97
Use post action for uploading up cache
2020-02-24 12:00:51 +01:00
Nicolas Mattia
7d70c37ab0
Cleanup nix action
2020-02-24 12:00:51 +01: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
50600603b5
Use cache in install instructions
2020-02-21 10:46:12 +01:00
Nicolas Mattia
6cf4ff85b9
Add cachix
2020-02-20 19:00:59 +01:00
Nicolas Mattia
2ecfd86b63
Release 0.2.13
2020-02-02 13:51:50 +01:00
Nicolas Mattia
7a21f49027
Fix typo
2020-01-31 20:30:33 +01:00
Nicolas Mattia
490c5e4ebc
Regenerate README
2020-01-31 20:30:33 +01:00
Nicolas Mattia
29a01ca085
Specify --name for nix-prefetch-url
2020-01-31 20:30:33 +01:00
Nicolas Mattia
65dc34edc8
Add -n to modify for renaming
2020-01-31 20:30:33 +01:00
Nicolas Mattia
7970bd7770
Use writeShellScript in cabal-upload
2020-01-31 20:30:33 +01:00
Nicolas Mattia
49157afd22
Merge pull request #191 from nmattia/nm-dont-ship-niv-test
...
Remove the niv-test executable
2020-01-20 18:32:12 +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
d29a2b6901
Merge pull request #190 from nmattia/nm-document-modify
...
Mention the modify command in README
2020-01-20 17:34:33 +01:00
Nicolas Mattia
bea7aa52d9
Mention the modify command in README
2020-01-20 16:55:25 +01:00
Nicolas Mattia
c396d697f3
Merge pull request #188 from nmattia/nm-changelog-0.2.12
...
Add CHANGELOG entry for 0.2.12
2020-01-20 11:48:05 +01:00
Nicolas Mattia
a4b45b95e1
Add CHANGELOG entry for 0.2.12
2020-01-20 11:33:09 +01:00
Nicolas Mattia
61b61d1e5f
Merge pull request #184 from nmattia/nm-release-0.2.12
...
Release 0.2.12
2020-01-17 12:24:43 +01:00
Nicolas Mattia
4f038fc598
Release 0.2.12
2020-01-17 12:08:57 +01:00
Nicolas Mattia
77b8893df4
Merge pull request #183 from nmattia/nm-dont-evaluate-nixpkgs
...
Don't needlessly evaluate <nixpkgs>
2020-01-17 11:53:09 +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
c8f74f44b5
Merge pull request #181 from nmattia/nm-reduce-closure-size
...
Only build static executable in top-level niv attribute
2020-01-11 21:08:38 +01:00