Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in latest master #2

Open
wants to merge 2,756 commits into
base: ipfs_binary_cache
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2756 commits
Select commit Hold shift + click to select a range
cdac083
don't print blank lines for blank description
bburdette Apr 25, 2020
f59404e
nix-env: refactor uninstallDerivations
lheckemann Apr 25, 2020
d4fd7b5
print dashes instead of empty name string
bburdette Apr 25, 2020
1ff4272
error.hh
bburdette Apr 26, 2020
a3bc695
Set GCROOT to store path to prevent garbage collection
mkenigs Apr 27, 2020
9e95b95
comment
mkenigs Apr 27, 2020
c05e20d
Fix long paths permanently breaking GC
alyssais Apr 27, 2020
e51a757
astyle format
bburdette Apr 27, 2020
ee754f0
Merge pull request #3541 from alyssais/gcdos
edolstra Apr 28, 2020
6a8cba8
Merge branch 'nix-env-warn-unmatched' of https://github.com/lheckeman…
edolstra Apr 28, 2020
52a3ca8
Tweak warning message
edolstra Apr 28, 2020
6d40fe5
rename to NIX_GCROOT
mkenigs Apr 28, 2020
06849c3
Merge pull request #3542 from mkenigs/gcroots
edolstra Apr 28, 2020
22e6490
Error classname as name
bburdette Apr 29, 2020
5a34a47
builtins.readFile: do not truncate content
guibou Apr 29, 2020
ca93b26
Only call grantpt on MacOS systems
nlewo Apr 29, 2020
aeb406d
Merge pull request #3547 from nlewo/grantpt
edolstra Apr 29, 2020
e2f6126
uncrustify formatting
bburdette Apr 29, 2020
7afcb5a
Remove the `drain` argument from `readFile`
guibou Apr 29, 2020
2e5be2a
StringSink pre allocate
guibou Apr 29, 2020
2d0f766
more style tweaks
bburdette Apr 29, 2020
d122985
Fix displaying error-position in `builtins.fetch{Tree,Tarball}`
Ma27 Apr 29, 2020
39ff80d
errorinfo constructor test
bburdette Apr 30, 2020
df8e9d6
Merge pull request #3548 from Ma27/fetchtarball-pos
domenkozar Apr 30, 2020
2fcfc6c
nix dev-shell: Refactor script for getting the environment
edolstra Apr 30, 2020
efe6c18
nix dev-shell: Support structured attrs
edolstra Apr 30, 2020
0135fd6
nix dev-shell: Unset shellHook
edolstra Apr 30, 2020
a15f918
Update issue templates
domenkozar Apr 30, 2020
625868b
Update issue templates
domenkozar Apr 30, 2020
171b4ce
typo
bburdette Apr 30, 2020
5333436
Revamp README.md
gilligan Apr 30, 2020
f5d3215
logError
bburdette Apr 30, 2020
a3030e3
fix error calls
bburdette Apr 30, 2020
536512d
Update README.md
domenkozar May 1, 2020
30616d8
Update README.md
domenkozar May 1, 2020
2a434fc
Update README.md
domenkozar May 1, 2020
93874cc
Merge pull request #3552 from gilligan/revamp-readme
domenkozar May 1, 2020
404a94a
Tweak README.md
edolstra May 1, 2020
5eebc4a
Fix coverage job
edolstra Mar 20, 2020
d6b4047
rename nix run to nix shell and nix app to nix run
mkenigs Apr 29, 2020
2852a48
rename run to shell in tests
mkenigs Apr 29, 2020
c089c52
Fix build
edolstra May 1, 2020
4b99c09
convert some errors
bburdette May 1, 2020
2aeb874
Improve help-message for nix-repl
Ma27 May 1, 2020
f16e24f
remote-store: don't log raw stderr by default
LnL7 May 2, 2020
4769eea
logging: handle build log lines in simple logger
LnL7 May 2, 2020
ab6f0b9
convert some printError calls to logError
bburdette May 3, 2020
3ebfbec
Merge pull request #3558 from LnL7/ssh-ng-stderr
edolstra May 4, 2020
c05f0e3
closer but still lambda indent problems
bburdette May 4, 2020
9c5ece4
separate msgs instead of appending to what()
bburdette May 4, 2020
e9f10be
precompiled-headers.h: Don't include our own headers
edolstra May 4, 2020
a721a0b
Flag: Use designated initializers
edolstra May 4, 2020
afaa541
affinity operator<<
bburdette May 4, 2020
8c8f2b7
log as warning
bburdette May 4, 2020
e2fc575
nix auto-gc: use fragment size
May 4, 2020
f30de61
add normaltxt, yellowify->yellowtxt
bburdette May 4, 2020
7ffb5ef
appending to hints; remove _printError
bburdette May 4, 2020
04967de
Wait for build users when none are available
balsoft May 5, 2020
f132d82
nix --help: Group commands
edolstra May 5, 2020
909b4a8
nix doctor: Consistency
edolstra May 5, 2020
fd49112
Revert "Merge pull request #3558 from LnL7/ssh-ng-stderr"
edolstra May 6, 2020
02c5914
Merge pull request #3562 from pikajude/master
edolstra May 6, 2020
9be4685
libstore/build.cc: more explicit about form of output
kolloch May 6, 2020
272c4ba
Merge pull request #3557 from Ma27/nix-repl-help
edolstra May 6, 2020
74a1bfd
Merge pull request #3546 from guibou/nix_readfile_on_0_sized_files
edolstra May 6, 2020
85c1932
nix/search: no error for empty search results if json is enabled
Mic92 May 5, 2020
58ed1e6
WIP: add unit tests for libutil
gilligan May 5, 2020
6729855
Merge pull request #3570 from Mic92/nix-search
domenkozar May 6, 2020
e76ad2e
implement SysError errno handling
bburdette May 6, 2020
e390163
todo removal
bburdette May 6, 2020
479e8bf
Manual: Fix typo
edolstra May 7, 2020
41caaaa
Manual: Typo
edolstra May 7, 2020
987b3d6
Use ASSERT_EQ instead of ASSERT_STREQ
gilligan May 7, 2020
1f3602a
Remove replaceInSet
gilligan May 7, 2020
73d0b5d
Drop unnecessary std::string
gilligan May 7, 2020
1b801ce
pretending to be const
bburdette May 7, 2020
14073fb
Don't block while waiting for build users
balsoft May 8, 2020
772e5db
Mention build users in the 'waiting for' message
balsoft May 8, 2020
7cc7cef
Move unit tests to sr/libutil/tests, use mk make rules
edolstra May 8, 2020
72b9d97
Fix warning
edolstra May 8, 2020
7898cdb
make check: Run unit tests
edolstra May 8, 2020
ca65752
Don't install unit tests
edolstra May 8, 2020
5b8883f
configure: Look for gtest
edolstra May 8, 2020
e3df9c2
Enable `dirOf` test
gilligan May 8, 2020
2191141
Enable `baseNameOf` test
gilligan May 8, 2020
181a47d
Enable toLower umlauts test
gilligan May 8, 2020
d3d8186
Merge pull request #3571 from gilligan/nix-unit-testing
edolstra May 8, 2020
55eb717
add pos to errorinfo, remove from hints
bburdette May 9, 2020
52cffaf
Fix typo
dmedinag May 9, 2020
446649e
Update "Upgrading Nix" documentation
TerrorJack May 9, 2020
146f9c1
doc: consistently refer to 'fixed-output' with a dash
bhipple May 9, 2020
b92f58f
Merge pull request #3580 from dmedinag/patch-1
domenkozar May 9, 2020
612d57c
Merge pull request #3582 from bhipple/doc/fixed-output
domenkozar May 11, 2020
23e5b48
Merge pull request #3581 from TerrorJack/patch-1
domenkozar May 11, 2020
1d8144e
Update src/libstore/build.cc
domenkozar May 11, 2020
5bdb67c
Merge pull request #3568 from kolloch/outputHashModeError
domenkozar May 11, 2020
958e819
switch from printError warnings to logWarnings
bburdette May 11, 2020
536bbf5
comments and cleanup
bburdette May 11, 2020
59b1f5c
Merge branch 'master' into errors-phase-2
bburdette May 11, 2020
b93c1bf
fixes to merged code
bburdette May 11, 2020
631642c
new format for pos
bburdette May 11, 2020
7c31388
more pos reporting
bburdette May 11, 2020
46be11b
Introduce NIX_INSTALLER_NO_CHANNEL_ADD which skips nix-channel --add
prusnak May 12, 2020
5722f96
tests/binary-cache.sh: Improve incomplete closure test
edolstra May 12, 2020
268ecf5
nix: Don't require --experimental-features=nix-command for some subco…
edolstra May 7, 2020
ebc024d
Show hint how to enable experimental features
edolstra May 7, 2020
ec870b9
new pos format for more errors
bburdette May 12, 2020
9e12b2f
Expose installer configuration environment variables via command line…
prusnak May 12, 2020
2a19bf8
move pos to the first arg, to indicate its not used in a fmt template
bburdette May 12, 2020
19cffc2
remove unused extra json fields
bburdette May 12, 2020
d608793
remove uncrustify cfg
bburdette May 12, 2020
72eccce
convert to logWarning format
bburdette May 12, 2020
960d436
hint only
bburdette May 12, 2020
ecbb8e9
no blank line if no LOC
bburdette May 12, 2020
ecd4e52
Merge pull request #3588 from prusnak/nix-skip-channel-add
edolstra May 13, 2020
bfca5fc
change status messages to info level
bburdette May 13, 2020
c79d4ad
consistent capitalization
bburdette May 13, 2020
d44bac1
remove error-demo from Makefile again
bburdette May 13, 2020
ef9dd9f
formatting and a few minor changes
bburdette May 13, 2020
183dd28
Don't lock a user while doing remote builds
balsoft May 14, 2020
4daccb2
formatting
bburdette May 14, 2020
19694aa
fix compile errors
bburdette May 14, 2020
546b179
actions: use latest OS
domenkozar May 15, 2020
92123c6
Merge remote-tracking branch 'upstream/master' into errors-phase-2
bburdette May 15, 2020
e223eea
Remove -j option from simple-build-testing
Mic92 May 16, 2020
2e16186
Merge pull request #3592 from Mic92/doc-fixes
edolstra May 18, 2020
0ed946a
Merge branch 'wait-for-builders' of https://github.com/serokell/nix
edolstra May 18, 2020
5ef64f0
Cleanup
edolstra May 18, 2020
a73a820
Add unit testes for url.cc
gilligan May 20, 2020
5d2d0a7
Merge pull request #3603 from gilligan/url-tests
edolstra May 20, 2020
c8cb558
documentation: avoid unquoted URLs
monoidal May 21, 2020
0726ad5
install: configure and bootstrap synthetic.conf on darwin
LnL7 Dec 15, 2019
1020262
install: also configure ~/.zshenv
LnL7 Dec 15, 2019
083bb3b
install: show macOS 10.15 message with --daemon
LnL7 Feb 13, 2020
ee89b77
manual: add apfs volume section
LnL7 Jan 17, 2020
caface1
install: hide the store volume on darwin
LnL7 Mar 5, 2020
04f597c
install: improve output and error handling
LnL7 Mar 7, 2020
bc24c09
install: make synthetic.conf and fstab checks stricter
LnL7 Mar 18, 2020
3386575
manual: clarify volume creation section
LnL7 Mar 26, 2020
477d7c2
installer: refuse apfs volume creation when FileVault is enabled
LnL7 Mar 26, 2020
2b0a81d
focus on golden-path covering most scenarios
abathur May 15, 2020
d3df188
installer: don't clobber synthetic.conf
LnL7 May 21, 2020
909d8cb
Use /etc/zshenv instead of /etc/zshrc for profile
surajbarkale May 22, 2020
604c520
Merge pull request #3606 from tweag/unquoted-urls
edolstra May 22, 2020
2a7ea2e
scripts/create-darwin-volume.sh: remove unused variable
domenkozar May 23, 2020
c129e7c
Merge pull request #3212 from LnL7/darwin-10.15-install
domenkozar May 23, 2020
6f6bdd6
fix hydra build products
LnL7 May 23, 2020
e2af11c
Manpages: Do not refer to nixpkgs-channels
nomeata May 23, 2020
8351d36
Merge pull request #3610 from LnL7/hydra-build-products
domenkozar May 23, 2020
81a0731
Merge pull request #3611 from nomeata/joachim/nix-env-man
domenkozar May 23, 2020
ecc5c90
Add unit tests for hashing functions
gilligan May 25, 2020
c284700
Add unit tests for "json.hh"
gilligan May 25, 2020
90b0c63
install-multi-user: allow overriding user count
domenkozar Feb 26, 2020
573ff8d
Allow passing extra nix.conf to installer
domenkozar May 25, 2020
fcf8520
Merge pull request #3623 from domenkozar/installer-pass-nix-conf
domenkozar May 25, 2020
909bdfb
Merge pull request #3375 from domenkozar/multi-user-count
domenkozar May 25, 2020
4b388e8
Add unit tests for xml-writer
gilligan May 25, 2020
1a5ac89
Fix installer script bugs
domenkozar May 26, 2020
3d3c219
installer: fix unused variable
domenkozar May 26, 2020
6d73c10
Merge remote-tracking branch 'origin/master' into enum-FileIngestionM…
meditans May 26, 2020
b90241c
Change remaining bools with FileIngestionMethod
meditans May 26, 2020
a4701e2
Merge pull request #3620 from gilligan/hash-tests
edolstra May 27, 2020
dae6a26
Merge pull request #3625 from gilligan/xml-writer-tests
edolstra May 27, 2020
66d3ac9
Merge pull request #3621 from gilligan/add-json-tests
edolstra May 27, 2020
228857e
Merge pull request #3608 from surajbarkale/patch-1
edolstra May 27, 2020
93129cf
Add unit tests for config.cc
andir May 26, 2020
e1b8c64
config.cc: extract parts of applyConfigFile into applyConfig
andir May 27, 2020
9df3d8c
tests/config.cc: add tests for Config::applyConfig
andir May 27, 2020
fc137d2
config.hh: Add documentation
andir May 27, 2020
7873fd1
Don’t use FileIngestionMethod for StorePathsCommand
matthewbauer May 27, 2020
c66441a
Rename some variables named “recursive” to “method”
matthewbauer May 27, 2020
4e6d7cb
installer: don't require xz on darwin
LnL7 May 27, 2020
0f96f45
Use `FileIngestionMethod` for `nix hash`
Ericson2314 May 28, 2020
d2a5375
Merge pull request #3632 from LnL7/darwin-xz
edolstra May 28, 2020
de141fc
Merge pull request #3455 from Ericson2314/enum-FileIngestionMethod
edolstra May 28, 2020
f60ce4f
Merge pull request #3631 from andir/libutil-config-tests
edolstra May 28, 2020
734283d
Merge remote-tracking branch 'upstream/master' into errors-phase-2
bburdette May 29, 2020
fac0c2d
Remove addToStore variant as requested by `FIXME`
Ericson2314 May 29, 2020
77007d4
Improve ref validity checking in fetchGit
knl May 30, 2020
fb38459
Ensure we restrict refspec interpretation while fetching
knl May 30, 2020
eca1ff7
Add tests for lru-cache.hh
gilligan May 30, 2020
0748a72
Merge pull request #3642 from knl/improve-ref-validity-checking-in-fe…
edolstra Jun 2, 2020
e9fee8e
src/libutil/tests/lru-cache.cc: Check erase()
edolstra Jun 2, 2020
c16fdda
Merge branch 'lru-tests' of https://github.com/gilligan/nix
edolstra Jun 2, 2020
bfa1acd
Merge pull request #3639 from obsidiansystems/do-fixme-store-removes
edolstra Jun 2, 2020
d82d230
elide the 'ErrorInfo' in logError and logWarning calls
bburdette Jun 2, 2020
156d4f8
remove extra space in SysErrors
bburdette Jun 2, 2020
01572c2
Missing `#include <cassert>` in `lru-cache.hh` (#3654)
Ericson2314 Jun 3, 2020
6ee03b8
libutils/hash: remove default encoding
zimbatm Jun 3, 2020
f97576c
newline-as-prefix; no final newline in output.
bburdette Jun 3, 2020
4335ba9
Merge remote-tracking branch 'upstream/master' into errors-phase-2
bburdette Jun 3, 2020
721943e
update error grep
bburdette Jun 3, 2020
61e3d59
Rename 'nix dev-shell' to 'nix develop'
edolstra Jun 4, 2020
0f44b60
Make 'nix dev-shell' a deprecated alias for 'nix develop'
edolstra Jun 4, 2020
2299ef7
Add error message when FileIngestionMethod is out of bounds
matthewbauer Jun 3, 2020
94427ff
add some comments
bburdette Jun 4, 2020
efc5e45
Add `src/libutil/tests/libutil-tests` to `.gitignore`
Ericson2314 Jun 4, 2020
ef798f7
Merge pull request #3664 from obsidiansystems/gitignore-test-file
edolstra Jun 5, 2020
39e84c3
Fix log-prefix of `nix build -L`
edolstra Jun 5, 2020
d558fb9
Merge pull request #3656 from obsidiansystems/handle-unknown-file-ing…
edolstra Jun 5, 2020
fb47242
src/libmain/stack.cc: fix 'ucontext' usage on glibc-2.26
Aug 31, 2017
8406fdf
Merge commit 'c9857ef262c391672b47e7714e61f1686b684e4d' into old-ipfs…
Ericson2314 Jun 5, 2020
9c1d129
Merge commit '5449ff7d8aaa8dce6d6f7e47c89e04d914f16cff' into old-ipfs…
Ericson2314 Jun 5, 2020
952e72c
Add tests for logging.hh
gilligan Jun 6, 2020
e60747b
Remove error-demo/error-demo.cc
gilligan Jun 6, 2020
94c3475
set verbosity levels
bburdette Jun 7, 2020
170e86d
Make the logger customisable
thufschmitt Jun 5, 2020
2c4de6a
add documentation
zimbatm Sep 26, 2019
4983401
Unify the printing of the logs between bar-with-logs and raw
thufschmitt Jun 5, 2020
f6ac888
Actually test nix-env with a remote store
thufschmitt Jun 8, 2020
c27f926
Style fixes
edolstra Jun 8, 2020
801112d
Move progress-bar.cc to libmain
thufschmitt Jun 8, 2020
62b6cb9
Update the ipfs binary store code
meditans Jun 8, 2020
8e70444
Merge remote-tracking branch 'upstream/master' into old-ipfs_binary_c…
Ericson2314 Jun 8, 2020
762273f
Allow empty hash in derivations
matthewbauer Jun 9, 2020
19aa892
Support empty hash in fetchers
matthewbauer Jun 9, 2020
b2c8061
Disable extra-platforms = i686-linux on wsl1 (#3676)
matthewbauer Jun 9, 2020
7eca8a1
Prelink static libraries into an object file
matthewbauer Jun 10, 2020
dc719b9
Merge pull request #3677 from matthewbauer/static-nix-one-translation…
edolstra Jun 10, 2020
f64cc6d
Merge pull request #3668 from tweag/fix-remote-nix-env-test
edolstra Jun 10, 2020
b9ae1bd
Merge pull request #3655 from zimbatm/hash-encoding-prepare
edolstra Jun 10, 2020
4750d98
Add tests for pool.hh
gilligan Jun 8, 2020
8bd8921
Style fixes
edolstra Jun 11, 2020
95eb064
Shut up warning
edolstra Jun 11, 2020
dd9bb11
Move names.{cc,hh} to libstore
edolstra Jun 11, 2020
ac4d43a
Merge pull request #3073 from tweag/machine-logs
edolstra Jun 11, 2020
ef1b3f2
Merge remote-tracking branch 'upstream/master' into errors-phase-2
bburdette Jun 11, 2020
4a4c063
Merge pull request #3670 from gilligan/add-pool-tests
edolstra Jun 12, 2020
045b072
Remove Store::queryDerivationOutputNames()
edolstra Jun 12, 2020
9f736dd
Add Store::readDerivation() convenience function
edolstra Jun 12, 2020
b260c9e
Add newHashAllowEmpty helper function
matthewbauer Jun 12, 2020
ea0d29d
Provide base argument to to_string
matthewbauer Jun 12, 2020
00fa7e2
Merge pull request #3674 from matthewbauer/allow-empty-hash2
edolstra Jun 12, 2020
2853ba4
Fix build
edolstra Jun 12, 2020
f6f0141
Use `std::string_view` in a few more places
Ericson2314 Jun 12, 2020
340d0b0
upload-release.pl: Fix nix-fallback-paths.nix generation
edolstra Jun 3, 2020
25d64f3
Merge pull request #3690 from obsidiansystems/more-string-view
edolstra Jun 15, 2020
7a77762
Merge branch 'errors-phase-2' of https://github.com/bburdette/nix
edolstra Jun 15, 2020
fd64e4f
Disambiguate BaseError(Args) constructor
edolstra Jun 15, 2020
1fb762d
Get rid of explicit ErrorInfo constructors
edolstra Jun 15, 2020
e14e62f
Remove trailing whitespace
edolstra Jun 15, 2020
5ed5d7a
Improve "waiting for locks" messages
edolstra Jun 15, 2020
ccfa6b3
Give better error message about <...> in pure eval mode
edolstra Jun 15, 2020
3170773
Remove unnecessary amDone() overrides
edolstra Jun 15, 2020
4e995bc
Always hide the progress bar on exit
edolstra Jun 15, 2020
f20bb98
Cleanup
edolstra Jun 15, 2020
8b09981
Respect terminal width printing error messages
edolstra Jun 15, 2020
24a3208
Include only the base name of the program in error messages
edolstra Jun 15, 2020
a588b6b
Print only one error message if a build fails
edolstra Jun 15, 2020
12f4035
Merge remote-tracking branch 'upstream/master' into old-ipfs_binary_c…
Ericson2314 Jun 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
(eval . (c-set-offset 'arglist-cont-nonempty '+))
(eval . (c-set-offset 'substatement-open 0))
(eval . (c-set-offset 'access-label '-))
(eval . (c-set-offset 'inlambda 0))
)))
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig configuration for nix
# http://EditorConfig.org

# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file, utf-8 charset
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# Match nix files, set indent to spaces with width of two
[*.nix]
indent_style = space
indent_size = 2

# Match c++/shell/perl, set indent to spaces with width of four
[*.{hpp,cc,hh,sh,pl}]
indent_style = space
indent_size = 4

# Match diffs, avoid to trim trailing whitespace
[*.{diff,patch}]
trim_trailing_whitespace = false
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**

A clear and concise description of what the bug is.

If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.

**Steps To Reproduce**

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

A clear and concise description of what you expected to happen.

**`nix-env --version` output**

**Additional context**

Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: improvement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Test"
on:
pull_request:
push:
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v8
- run: nix-build release.nix --arg nix '{ outPath = ./.; revCount = 123; shortRev = "abcdefgh"; }' --arg systems '[ builtins.currentSystem ]' -A installerScript -A perlBindings
35 changes: 22 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
Makefile.config
perl/Makefile.config

# /
/aclocal.m4
/autom4te.cache
/precompiled-headers.h.gch
/precompiled-headers.h.pch
/config.*
/configure
/nix.spec
/stamp-h1
/svn-revision
/libtool

/corepkgs/config.nix

# /corepkgs/buildenv/
/corepkgs/buildenv/builder.pl

# /corepkgs/channels/
/corepkgs/channels/unpack.sh

Expand All @@ -35,9 +34,9 @@ Makefile.config
# /scripts/
/scripts/nix-profile.sh
/scripts/nix-copy-closure
/scripts/build-remote.pl
/scripts/nix-reduce-build
/scripts/nix-http-export.cgi
/scripts/nix-profile-daemon.sh

# /src/libexpr/
/src/libexpr/lexer-tab.cc
Expand All @@ -48,8 +47,10 @@ Makefile.config
/src/libexpr/nix.tbl

# /src/libstore/
/src/libstore/schema.sql.hh
/src/libstore/sandbox-defaults.sb
*.gen.*

# /src/libutil/
/src/libutil/tests/libutil-tests

/src/nix/nix

Expand All @@ -72,22 +73,24 @@ Makefile.config
# /src/nix-channel/
/src/nix-channel/nix-channel

# /src/download-via-ssh/
/src/download-via-ssh/download-via-ssh

# /src/buildenv/
/src/buildenv/buildenv

# /src/nix-build/
/src/nix-build/nix-build

/src/nix-copy-closure/nix-copy-closure

/src/error-demo/error-demo

/src/build-remote/build-remote

# /tests/
/tests/test-tmp
/tests/common.sh
/tests/dummy
/tests/result*
/tests/restricted-innocent
/tests/shell
/tests/shell.drv
/tests/config.nix

# /tests/lang/
/tests/lang/*.out
Expand All @@ -101,19 +104,25 @@ Makefile.config
/misc/systemd/nix-daemon.socket
/misc/upstart/nix-daemon.conf

/src/resolve-system-dependencies/resolve-system-dependencies

inst/

*.a
*.o
*.so
*.dylib
*.dll
*.exe
*.dep
*~
*.pc
*.plist

# GNU Global
GPATH
GRTAGS
GSYMS
GTAGS

nix-rust/target
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4
28 changes: 10 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,42 +1,34 @@
makefiles = \
mk/precompiled-headers.mk \
local.mk \
src/boost/format/local.mk \
nix-rust/local.mk \
src/libutil/local.mk \
src/libutil/tests/local.mk \
src/libstore/local.mk \
src/libfetchers/local.mk \
src/libmain/local.mk \
src/libexpr/local.mk \
src/nix/local.mk \
src/nix-store/local.mk \
src/nix-instantiate/local.mk \
src/nix-env/local.mk \
src/nix-daemon/local.mk \
src/nix-collect-garbage/local.mk \
src/nix-prefetch-url/local.mk \
src/buildenv/local.mk \
src/resolve-system-dependencies/local.mk \
src/nix-channel/local.mk \
src/nix-build/local.mk \
src/build-remote/local.mk \
perl/local.mk \
scripts/local.mk \
corepkgs/local.mk \
misc/systemd/local.mk \
misc/launchd/local.mk \
misc/upstart/local.mk \
misc/emacs/local.mk \
doc/manual/local.mk \
tests/local.mk
#src/download-via-ssh/local.mk \

GLOBAL_CXXFLAGS += -std=c++14 -g -Wall
tests/local.mk \
tests/plugins/local.mk

-include Makefile.config

OPTIMIZE = 1

ifeq ($(OPTIMIZE), 1)
GLOBAL_CFLAGS += -O3
GLOBAL_CXXFLAGS += -O3
else
GLOBAL_CXXFLAGS += -O0
endif

include mk/lib.mk

GLOBAL_CXXFLAGS += -g -Wall -include config.h -std=c++17
20 changes: 14 additions & 6 deletions Makefile.config.in
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
AR = @AR@
BDW_GC_LIBS = @BDW_GC_LIBS@
BOOST_LDFLAGS = @BOOST_LDFLAGS@
BUILD_SHARED_LIBS = @BUILD_SHARED_LIBS@
CC = @CC@
CFLAGS = @CFLAGS@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
EDITLINE_LIBS = @EDITLINE_LIBS@
ENABLE_S3 = @ENABLE_S3@
GTEST_LIBS = @GTEST_LIBS@
HAVE_SECCOMP = @HAVE_SECCOMP@
HAVE_SODIUM = @HAVE_SODIUM@
LDFLAGS = @LDFLAGS@
LIBARCHIVE_LIBS = @LIBARCHIVE_LIBS@
LIBBROTLI_LIBS = @LIBBROTLI_LIBS@
LIBCURL_LIBS = @LIBCURL_LIBS@
LIBLZMA_LIBS = @LIBLZMA_LIBS@
OPENSSL_LIBS = @OPENSSL_LIBS@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
SODIUM_LIBS = @SODIUM_LIBS@
LIBLZMA_LIBS = @LIBLZMA_LIBS@
SQLITE3_LIBS = @SQLITE3_LIBS@
bash = @bash@
bindir = @bindir@
curl = @curl@
datadir = @datadir@
datarootdir = @datarootdir@
doc_generate = @doc_generate@
docdir = @docdir@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
lsof = @lsof@
mandir = @mandir@
perl = @perl@
perlbindings = @perlbindings@
perllibdir = @perllibdir@
pkglibdir = $(libdir)/$(PACKAGE_NAME)
prefix = @prefix@
sandbox_shell = @sandbox_shell@
storedir = @storedir@
sysconfdir = @sysconfdir@
doc_generate = @doc_generate@
system = @system@
xmllint = @xmllint@
xsltproc = @xsltproc@
62 changes: 47 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,54 @@
Nix, the purely functional package manager
------------------------------------------
# Nix

Nix is a new take on package management that is fairly unique. Because of it's
purity aspects, a lot of issues found in traditional package managers don't
appear with Nix.
[![Open Collective supporters](https://opencollective.com/nixos/tiers/supporter/badge.svg?label=Supporters&color=brightgreen)](https://opencollective.com/nixos)
[![Test](https://github.com/NixOS/nix/workflows/Test/badge.svg)](https://github.com/NixOS/nix/actions)

To find out more about the tool, usage and installation instructions, please
read the manual, which is available on the Nix website at
<http://nixos.org/nix/manual>.
Nix is a powerful package manager for Linux and other Unix systems that makes package
management reliable and reproducible. Please refer to the [Nix manual](https://nixos.org/nix/manual)
for more details.

## Contributing
## Installation

Take a look at the [Hacking Section](http://nixos.org/nix/manual/#chap-hacking)
of the manual. It helps you to get started with building Nix from source.
On Linux and macOS the easiest way to Install Nix is to run the following shell command
(as a user other than root):

## License
```
$ curl -L https://nixos.org/nix/install | sh
```

Information on additional installation methods is available on the [Nix download page](https://nixos.org/download.html).

## Building And Developing

### Building Nix

You can build Nix using one of the targets provided by [release.nix](./release.nix):

```
$ nix-build ./release.nix -A build.aarch64-linux
$ nix-build ./release.nix -A build.x86_64-darwin
$ nix-build ./release.nix -A build.i686-linux
$ nix-build ./release.nix -A build.x86_64-linux
```

Nix is released under the LGPL v2.1
### Development Environment

You can use the provided `shell.nix` to get a working development environment:

```
$ nix-shell
$ ./bootstrap.sh
$ ./configure
$ make
```

## Additional Resources

- [Nix manual](https://nixos.org/nix/manual)
- [Nix jobsets on hydra.nixos.org](https://hydra.nixos.org/project/nix)
- [NixOS Discourse](https://discourse.nixos.org/)
- [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)

## License

This product includes software developed by the OpenSSL Project for
use in the [OpenSSL Toolkit](http://www.OpenSSL.org/).
Nix is released under the [LGPL v2.1](./COPYING).
Loading