Commit graph

13226 commits

Author SHA1 Message Date
Eelco Dolstra
53ec5ac69f
Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00
Eelco Dolstra
548ad391d9
Fix builtins.add test
Nix prints the floating point number 4.0 as "4".
2018-05-02 13:49:32 +02:00
Eelco Dolstra
4a2c948943
Fix bzip2 compression of files > 4 GiB
Bzip2's 'avail_in' parameter is declared as an unsigned int, so
assigning a size_t length to it led to silent truncation.

Fixes #2111.
2018-05-02 12:54:30 +02:00
Vincent Ambo
06f21643dd docs(build): Document manual changes to Carnix expression 2018-05-02 00:33:46 +02:00
Vincent Ambo
c07b1be3be fix(build): Apply a workaround for building Comrak in Nix
Carnix can not be configured to not build a dependency's
binaries (even if relevant features are disabled), but Comrak's binary
can by default not be built in Carnix because it attempts to read a
Cargo-provided environment variable at compile time.

This works around the issue by "faking" the environment variable,
which is less than ideal but works.
2018-05-02 00:33:46 +02:00
Vincent Ambo
40fb4ebbb9 refactor(handlers/render): Use users from database for all functions
Converse now sets the user ID as the session identity parameter in
actix_web's identity middleware after a successful login and uses the
ID to determine identity when creating threads & posts and when
validating edit permissions.
2018-05-02 00:33:46 +02:00
Vincent Ambo
6d69f5001e refactor(main): Use actix-web's identity middleware for auth 2018-05-02 00:33:46 +02:00
Vincent Ambo
095293e8e3 feat(db): Add LookupOrCreateUser message
Adds a message to look up a user in the database based on their email
address. If the user does not exist, it is created.
2018-05-02 00:33:46 +02:00
Vincent Ambo
1e57b879fb chore(cargo): Update dependency minor versions 2018-05-02 00:33:46 +02:00
Vincent Ambo
9b1f6d3628 refactor(db/render/schema): Use SimplePost type for thread views
This uses the simplified view for querying posts instead of the post
table directly to display posts.
2018-05-02 00:33:46 +02:00
Vincent Ambo
9d5830e9a7 feat(migrations): Add a view for simplified post querying
Adds a view to avoid having to query and join the users & posts table
inside of the application (which isn't particularly convenient in Diesel).
2018-05-02 00:33:46 +02:00
Vincent Ambo
7a17d532c4 fix(schema): Update for author->user_id column rename 2018-05-02 00:33:46 +02:00
Vincent Ambo
a45da31abc refactor(migrations): Rename 'author' column to 'user_id'
This makes it easier to integrate with Diesel, for which this is the
expected column name.
2018-05-02 00:33:46 +02:00
Vincent Ambo
a324a89fd0 chore(schema): Update generated Diesel schema
Updates the generated schema with the new users table.

This commit will break the build.
2018-05-02 00:33:46 +02:00
Vincent Ambo
1d9ff8b4c8 fix(migrations): Explicitly insert anonymous user
This guarantees that the anonymous user will always exist and have
ID=1.
2018-05-02 00:33:46 +02:00
Vincent Ambo
02c15f06d6 fix(migrations): Fix search index creation in user migration 2018-05-02 00:33:46 +02:00
Vincent Ambo
2159c76ca7 feat(migrations): Adds a migration to create a users table
As a first step of getting the concept of users into the database,
this creates a (somewhat involved) migration that moves all existing
"users" into a new users table and updates the post table to reference
it.

This migration is not yet finalised and still needs to be updated with
something to handle the concept of anonymous users (which I want to
keep around).
2018-05-02 00:33:46 +02:00
Vincent Ambo
e5d129b499 fix(nixos): Use 'screen-lock' command instead of i3lock directly 2018-05-01 16:41:42 +02:00
Vincent Ambo
7c673cd0d0 feat(packages): Add more emacs packages from unstable
Additional packages for ivy are installed from unstable, too, in order
to avoid compatibility issues with the ivy version in stable.
2018-05-01 16:08:10 +02:00
Vincent Ambo
5cf456e4f5 refactor(emacs): Install packages directly from MELPA
Never use MELPA Stable, as it's based on the assumption that authors
at least occasionally tag their code (they don't).
2018-05-01 16:08:10 +02:00
Vincent Ambo
456f692b88 feat(functions): Add ivy-run-external-command
Adds an ivy-based function akin to Helm's helm-run-external-command,
but without all the things I don't need/want.
2018-05-01 16:02:53 +02:00
Vincent Ambo
72a33b9156 feat(all): Replace helm with ivy
For most of my use-cases Helm seems to be overkill, and despite
overall seeming like a nice and featureful package it has stability
issues and bugs that annoy me.

I've heard that ivy is simpler to use and configure, so I'm giving it
a chance here.
2018-05-01 16:01:38 +02:00
Vincent Ambo
f4d1bb966c fix(config): Use OpenJDK instead of Oracle JDK 2018-05-01 15:22:40 +02:00
Vincent Ambo
693f92731b feat(emacs): Install ivy & related packages
Finally getting around to ditching Helm ...
2018-05-01 15:05:53 +02:00
Félix Baylac-Jacqué
b2f3a7411a
nix-lang: Add deep nested mixed attrs test case. 2018-05-01 14:42:34 +02:00
Vincent Ambo
be749fdd22 fix(config): Clean /tmp on boot 2018-05-01 14:08:36 +02:00
Vincent Ambo
6a35699045 chore(packages): Bump channel versions 2018-05-01 14:07:24 +02:00
Mayeul Cantan
56b2ac36e5 Refactor the device list
It is now more readable, which should make it easier to parse the code
and add new devices.
2018-04-30 23:06:19 +02:00
Abseil Team
9613678332 - 60c1f40a5e0bc33f93392ff6827528072d749a29 Move ExceptionSafetyTester from the absl:: namespace to t... by Abseil Team <absl-team@google.com>
- abd40a98f8ae746eb151e777ea8a8b5223d68a4b Splits the NoThrow flags into TypeSpec and AllocSpec flag... by Abseil Team <absl-team@google.com>
  - c16d0b5509b36679b384147b474135e7951afccf Change the abbreviation for the breakdowns of InfinitePas... by Abseil Team <absl-team@google.com>
  - 8ac104351764f23d666b52dce7536a34c05abf00 Use ABSL_CONST_INIT with std::atomic variables in static ... by Matt Armstrong <marmstrong@google.com>

GitOrigin-RevId: 60c1f40a5e0bc33f93392ff6827528072d749a29
Change-Id: I9d45a6ed30ed32ae57e9eff93f4205dbcd71feb2
2018-04-30 15:07:44 -04:00
Eelco Dolstra
3560654e6a
Merge pull request #2126 from DavidEGrayson/pr_gc_doc
nix-collect-garbage: fix documentation to not mention options like --print-dead
2018-04-30 19:13:21 +02:00
Danylo Hlynskyi
ac22d77fd1 nix-collect-garbage: little doc fix
This removes confusing documentation. It's better to remove doc than add implementation, because Nix 1.12 will surely have new GC interface anyway.

Fixes https://github.com/NixOS/nix/issues/641
2018-04-30 09:36:46 -07:00
Tim Sears
9a714f75af
add tests for builtins.add 2018-04-29 12:03:42 -07:00
Vincent Ambo
6f2a45fe58 style(config): Minor style fix 2018-04-28 17:53:32 +02:00
Vincent Ambo
851d43e738 refactor(adho/config): Open Chromecast-ports on all machines 2018-04-28 17:46:13 +02:00
Vincent Ambo
eab23ce912 feat(config): Use 1.1.1.1 DNS servers 2018-04-28 17:45:36 +02:00
Abseil Team
28f5b89070 - 81cdce434ff1bd8fa54c832a11dda59af46e79cc Adds a failure signal handler to Abseil. by Derek Mauro <dmauro@google.com>
- 40a973dd1b159e7455dd5fc06ac2d3f494d72c3e Remove test fixture requirement for ExceptionSafetyTester... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 81cdce434ff1bd8fa54c832a11dda59af46e79cc
Change-Id: Ia9fca98e38f229b68f7ec45600dee1bbd5dcff33
2018-04-26 11:05:43 -04:00
Abseil Team
ea0e750e52 - 2f6a3c92ce0f64e0923ad326ec5d07eae03061fd Add C++14's std::exchange to absl/utility/utility.h. by Abseil Team <absl-team@google.com>
- 9f2c9adbf998dd9062c8cc3da1076bde87081d71 Fix comment typo. by Greg Falcon <gfalcon@google.com>

GitOrigin-RevId: 2f6a3c92ce0f64e0923ad326ec5d07eae03061fd
Change-Id: I7b9db94ad315092baefe56b02f250acadafbe312
2018-04-25 13:44:41 -04:00
Vincent Ambo
7f34861ef1 feat(packages): Add Rust packages globally 2018-04-24 23:58:03 +02:00
Matthew Garrett
766b7b00fb Version 0.9 2018-04-24 08:33:05 -07:00
Abseil Team
19b3c95727 - 3a9532fb2d6ae45c3cba44c9bb0dbdfc1558b7d3 Fix the description of Span::subspan(). by Abseil Team <absl-team@google.com>
- bae1a1c21924bd31fa7315eff05ea6158d9e7947 Port the symbolizer to Windows. by Derek Mauro <dmauro@google.com>
  - 2253c04c1a4f39d9581772f1dc4491878aa3831f Support absl::Hex() and absl::Dec() as arguments to absl:... by Jorg Brown <jorg@google.com>
  - 552c3ac259e9c254fda9244755487f3423d2fe4b Internal change by Jorg Brown <jorg@google.com>

GitOrigin-RevId: 3a9532fb2d6ae45c3cba44c9bb0dbdfc1558b7d3
Change-Id: I448133c9bb6d837037c12b45a9a16a7945049453
2018-04-24 10:09:46 -04:00
Vincent Ambo
0d23a04daf chore(gitattributes): Tell Github Linguist to ignore default.nix
The `default.nix` in this repository contains generated code and skews
Github's language statistics. While I'm a big fan of Nix, Converse is
certainly not 80% written in Nix ;-)
2018-04-24 16:04:12 +02:00
Vincent Ambo
79944a66ef feat(dotfiles/fish): Add alias for 'servedir' 2018-04-24 12:08:52 +02:00
Will Dietz
8e7d77d494 globals.hh: don't use '==' to compare string literals
Saw this in logs, also reported here:

8e6108ff71 (r28707288)
2018-04-23 20:57:05 -05:00
Vincent Ambo
9adacf8696 fix(build): Add explicit pulldown-cmark dependency
There is some weird dependency interaction between pulldown-cmark and
getopts which causes builds to fail with a message about unstable
features if getopts is not explicitly depended on as a dependency of a
dependency (yeah, huh?)
2018-04-23 22:09:37 +02:00
Vincent Ambo
0f6f5aeb4c refactor(build): Use Carnix-based expression for building
This is probably going to break Github's language statistics ...
2018-04-23 22:09:37 +02:00
Vincent Ambo
9dc1143b14 chore(cargo): Bump dependency minor versions 2018-04-23 22:09:37 +02:00
Abseil Team
af7882601a - fd5f3d7077270ffc5ea74cdb9e18bbae3b9b46aa Fix typo optional -> variant by Abseil Team <absl-team@google.com>
- 9136c06dfa8dbfdde0a427ad3509e34763d607a6 Fix string_view_test and str_cat_test build under MSVC de... by Derek Mauro <dmauro@google.com>
  - a463820f9441888f4368aa87328599e3209f9b07 Removes constexpr optional<T>::operator->(). This was don... by Abseil Team <absl-team@google.com>
  - 3bf78a7f126daafff329f7815d507422f1ca378d Remove dependencies on external CCTZ project. by Shaindel Schwartz <shaindel@google.com>
  - a4ae574a11b1ddf6e88459af3d638cf79aea7ecd Internal change by Jon Cohen <cohenjon@google.com>

GitOrigin-RevId: fd5f3d7077270ffc5ea74cdb9e18bbae3b9b46aa
Change-Id: I6ab8ab99863716fe9b2745a12ef285f7a6da6d1e
2018-04-23 12:57:34 -04:00
Vincent Ambo
636b1396f8 feat(emacs): Install nginx-mode 2018-04-23 15:34:51 +02:00
Vincent Ambo
95ce089815 feat(desktop): Install Helvetica Neue font 2018-04-23 15:34:45 +02:00
Shea Levy
8e6108ff71
Merge branch 'aarch64-armv7' of git://github.com/lheckemann/nix
Support extra compatible architectures (#1916)
2018-04-23 08:48:22 -04:00