Commit Graph
100 Commits
Author SHA1 Message Date
Matthieu Coudron 16e3574e29 buildLuarocksPackage: adjust the manifest path
the new luarocks 3.0.4 uses different paths for the manifests, hence creating new collisions.
2019-03-08 13:24:23 +09:00
Matthieu Coudron 246e354e1f lua5Packages.luuid: fix build
libuuid is null outside of linux which may explain why ofborg refused it.
2019-03-07 10:34:26 +00:00
Matthieu Coudron ed7818219a lua: run postConfigure hook for rock and rockspec
it was previously run only for src.rock
2019-03-07 10:34:01 +00:00
Matthieu Coudron b93ccb7136 lua: add isLua53 2019-03-07 10:17:44 +00:00
Matthieu Coudron 0752393738 python3Packages.matplotlib: 3.0.2 -> 3.0.3 2019-03-07 10:07:29 +01:00
Matthieu Coudron 64801cc153 lua-packages.nix:remove unused 'overrides' setting
This was leftover from early implementations.
The overrides are passed via packageOverrides in lua-modules/default.nix
2019-03-07 17:43:07 +09:00
Matthieu Coudron 68a72f1a47 luarocks-nix: bump to match luarocks
Also made changes to lua package generation system to account for packages like cqueues
that have one version per lua interpreter.
The csv file also accepts comments now.
2019-03-07 17:43:07 +09:00
Matthieu Coudron c37b8925ba luarocks: 2.4.4 -> 3.0.4
Some new features like test_dependencies/build_dependencies and flags ( --lua-versions)
that should make nix integration easier:
https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md
2019-03-07 17:43:07 +09:00
Matthieu Coudron 0cb3ee3bde luaPackages.lua-iconv: move to generated 2019-02-13 14:13:39 +09:00
Matthieu Coudron c84a431624 luaPackages.lpty: 1.2.1 -> 1.2.2 generated 2019-02-13 14:13:01 +09:00
Matthieu Coudron ce63fd4381 luaPackages.luabitop: generated 2019-02-13 14:12:44 +09:00
Matthieu Coudron c789b88cdd luaPackages.luacheck: 0.20 -> 0.23 generated 2019-02-13 14:11:14 +09:00
Matthieu Coudron 421110ae36 luaPackages.luaevent: 0.4.4 -> 0.4.6 generated 2019-02-13 14:10:35 +09:00
Matthieu Coudron 71b2e1f554 luaPackages.lgi: move to generated 2019-02-12 11:47:54 +09:00
Matthieu Coudron c01fe375ca luaPackages.cqueues: move to generated 2019-02-12 11:47:54 +09:00
Matthieu Coudron 84d4faf8d5 luaPackages.basexx: move to generated 2019-02-12 11:47:53 +09:00
Matthieu Coudron 582fa48e6f luaPackages.fifo: move to generated 2019-02-12 11:47:53 +09:00
Matthieu Coudron f0269de17f luaPackages.lpeg_patterns: move to generated 2019-02-12 11:47:53 +09:00
Matthieu Coudron 9333c833a5 vte-ng: 0.50.2.a -> 0.54.2.a 2019-02-07 20:58:43 +09:00
Matthieu Coudron a5a796222b linux: (re)take into account extraConfig
PR #42838 wrongly started to ignore extraConfig. This fixes that.
2019-01-31 13:34:42 +09:00
Matthieu Coudron 045e1332d9 linux: fix after rebase 2019-01-28 11:24:59 +09:00
Matthieu Coudron 461cb3f9ed linux: added tests for the config 2019-01-28 09:07:24 +09:00
Matthieu Coudron 7aacbdb898 linux: convert hardened-config to a structured one 2019-01-28 09:07:24 +09:00
Matthieu Coudron 3bb7b3f02e linux: ability to merge structured configs
This should make the composability of kernel configurations more straigthforward.

- now distinguish freeform options from tristate ones
- will look for a structured config in kernelPatches too
one can now access the structuredConfig from a kernel via linux_test.configfile.structuredConfig
in order to reinject it into another kernel, no need to rewrite the config from scratch

The following merge strategies are used in case of conflict:
-- freeform items must be equal or they conflict (mergeEqualOption)
-- for tristate (y/m/n) entries, I use the mergeAnswer strategy which takes the best available value, "best" being defined by the user (by default "y" > "m" > "n", e.g. if one entry is both marked "y" and "n", "y" wins)
-- if one item is both marked optional/mandatory, mandatory wins (mergeFalseByDefault)
2019-01-28 09:06:33 +09:00
Matthieu Coudron 15a8719d40 luarocks-nix: init
luarocks-nix is a fork of luarocks that adds a "nix" command capable of
converting luarocks package descriptions into nix derivations (though nixpkgs is
still missing the lua infrastructure).
2019-01-22 16:52:43 +09:00
Matthieu Coudron d7a48fc80d luarocks: support more usage
better support for luarocks in a shell (helpful to develop on luarocks).
Also adds unpacker for src.rock/rockspec files.
Also allows to use luarocks to build cmake based rocks.
2019-01-22 16:52:43 +09:00
Matthieu Coudron efbf9afb17 gImageReader: init at 3.2.99
gImageReader is a GUI for tesseract, an optical character recognition engine.
While the UI supports Qt/Gtk, I have only added the gtk one in the nix derivation.
2018-11-02 01:22:12 +09:00
Matthieu Coudron 3902b3f4e7 python3Packages.gpgme: enable python3 version
when calling python3Packages.gpgme, it was still picking python2.
Changed withPython into pythonSupport since it's the convention.

I had to enable ncurses too because of this error when configuring:

configure:19978: checking python extra libraries
configure:19985: result: -lpthread -ldl -lcrypt -lncurses -lutil -lm
configure:19992: checking python extra linking flags
configure:19999: result: -Xlinker -export-dynamic
configure:20006: checking consistency of all components of python development environment
configure:20032: gcc -o conftest -g -O2  -I/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/include/python3.6m  conftest.c  -L/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/lib -lpython3.6m -Xlinker -export-dynamic -lpthread -ldl -lcrypt -lncurses -lutil -lm >&5
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
configure:20032: $? = 1
2018-10-19 14:20:08 +09:00
Matthieu Coudron ad6ee9c61f python3Packages.cmd2: 0.9.4 -> 0.9.6 2018-10-15 19:11:08 +09:00
Matthieu Coudron 7d20acdbcd apvlv: add .desktop file 2018-10-15 18:00:37 +09:00
Matthieu Coudron 714c0781c3 rfc-bibtex: init at 2.2.1
Generate bibtex entries from IETF rfc/drafts, for instance:
$ rfcbibtex RFC5246 draft-ietf-tls-tls13-21

@techreport{RFC5246,
  author = {T. Dierks and E. Rescorla},
  title = {{The Transport Layer Security (TLS) Protocol Version 1.2}},
  howpublished = {Internet Requests for Comments},
  type = {RFC},
  number = {5246},
  year = {2008},
  month = {August},
  issn = {2070-1721},
  publisher = {RFC Editor},
  institution = {RFC Editor},
  url = {http://www.rfc-editor.org/rfc/rfc5246.txt},
  note = {\url{http://www.rfc-editor.org/rfc/rfc5246.txt}},
}

@techreport{I-D.ietf-tls-tls13,
  author = {Eric Rescorla},
  title = {{The Transport Layer Security (TLS) Protocol Version 1.3}},
  howpublished = {Working Draft},
  type = {Internet-Draft},
  number = {draft-ietf-tls-tls13-21},
  year = {2017},
  month = {July},
  institution = {IETF Secretariat},
  url = {http://www.ietf.org/internet-drafts/draft-ietf-tls-tls13-21.txt},
  note = {\url{http://www.ietf.org/internet-drafts/draft-ietf-tls-tls13-21.txt}},
}
2018-10-11 16:17:40 +09:00
Matthieu Coudron e80324c625 linux: inside nix-shell, allow make menuconfig
Use stdenv.lib.inNixShell to check for nix-shell and potentially bring pkgconfig/ncurses.
2018-10-05 18:00:15 +09:00
Matthieu Coudron e30a2b0207 khard: fixup zsh autocompletion
I introduced an error in, install -D will create the folders until the last component excluded
so I needed to add the filename for it to create _khard
https://github.com/NixOS/nixpkgs/pull/46515
2018-10-04 15:34:04 +09:00
Matthieu Coudron 3c94e4782f linux_mptcp: 0.94 -> 0.94.1
Also introduce linux_mptcp_94 alias to prevent from overriding the wrong kernel
when switching across branches.

test
2018-10-03 00:28:21 +09:00
Matthieu Coudron 78936513a6 gtkspellmm: 3.0.4 -> 3.0.5
Archive extension changed from tar.gz to tar.xz so be careful !
2018-09-18 03:17:35 +09:00
Matthieu Coudron 676ceb81b7 python3Packages.mypy: 0.620 -> 0.630
Now requires mypy_extensions so added it as well.
2018-09-18 00:31:41 +09:00
Matthieu Coudron c4819dafe5 vimPlugins: adding vim-sayonara/nvimdev/obsession 2018-09-17 01:31:32 +09:00
Matthieu Coudron d30c97096b gitAndTools.git-extras: install zsh completion
because there are so many freaking commands !
2018-09-11 18:56:00 +09:00
Matthieu Coudron 14d9857604 pythonPackages.khard: zsh autocompletion
'cos that's cool
2018-09-11 18:43:15 +09:00
Matthieu Coudron 13050ccc0b python3Packages.genanki: init at 0.6.0
Library to generate anki flashcards.
2018-09-06 18:31:57 +02:00
Matthieu Coudron 11e2009821 haskellPackages.tensorflow-mnist-input-data: fetch
Prefetch data so that the package doesn't try to connect to the internet.
2018-09-06 00:11:02 +09:00
Matthieu Coudron 61df695f65 khal: add zsh completion 2018-09-04 19:27:47 +09:00
Matthieu Coudron 97816bed33 pythonPackages.alot: install zsh completion 2018-09-04 02:22:58 +09:00
Matthieu Coudron 929a53f281 libvirt: fix dlopen("libjansson.so.4")
Commit 59027e2 broke libvirt broke libvirt/nixops on linux.
Use ${targetPlatform.extensions.sharedLibrary} to accomodate both linux and darwin.
2018-08-19 22:33:06 +09:00
Matthieu Coudron f0980c40c1 networkmanager: make hooks easier to use
First change is to override the nm-dispatcher systemd service so that
it puts coreutils (wc/env/...) and iproute in PATH.
Second change is to make sure userscripts have the execute bit.
2018-08-07 17:53:56 +09:00
Matthieu Coudron 5a9ba174bd lib.debug: fix traceValSeqFn
was calling the wrong parent version.
2018-07-15 09:36:08 +09:00
Matthieu Coudron a66a44186f tig: add zsh completion
along with contrib/vim.tigrc config in case users want to use it.
2018-07-12 12:39:11 +09:00
Matthieu Coudron e4fe7b31be linux: fix features system 2018-06-30 16:01:41 +03:00
Matthieu Coudron dcea150a89 kernel: remove conditions based on 3.X kernels
The oldest kernel in nixpkgs being 4.4, we get rid of checks for older
kernels.
2018-06-30 16:01:41 +03:00
Matthieu Coudron 6664babe85 i3-easyfocus: init at 20180622
Fast window switcher.
Attributes and display one letter per window on your current workspace, upon keypress,
will focus the matching window.
2018-06-22 16:44:53 +09:00
Matthieu Coudron d395b185d9 i3ipc-glib: init at 0.6.0
IPC library used to interact with the window manager www.i3wm.org
2018-06-22 16:43:33 +09:00
Matthieu Coudron 65b15ba6a9 pythonPackages.cmd2: keep 0.8 version
...which is the last one with python2 support until ~ august 2018
2018-06-15 03:46:40 +09:00
Matthieu Coudron bb47fd0fec python3Packages.cmd2: 0.8.0 -> 0.9.1 2018-06-15 03:46:40 +09:00
Matthieu Coudron d62a355884 pythonPackages.wcwith: 0.1.6 -> 0.1.7 2018-06-14 10:25:14 +09:00
Matthieu Coudron 0080fe93fc http-getter: init at 20180606
Used by flent
2018-06-14 08:28:10 +09:00
Matthieu Coudron e96ce01e76 flent: enable man by default 2018-06-14 08:27:53 +09:00
Matthieu Coudron eb7e0d42db doc: Explain how to hack on kernel
Presents the options available (linuxManualConfig versus overriding
extraConfig, ignoreConfigErrors, autoModules, kernelPreferBuiltin.

For advanced hostPlatform customization refer to the commands shared by ericson1234 at
https://github.com/NixOS/nixpkgs/pull/33813 but it is too advanced to
put in the doc.
2018-06-08 10:36:21 +03:00
Matthieu Coudron e14fa60cb6 flent: fix fetchFromGitHub version
Lacked a "v" in revision.
2018-06-06 11:22:23 +09:00
Matthieu Coudron 358296c05a owamp: adding module
You can retrieve the one way latency between your client and the remote
host via owping.
2018-06-05 22:15:28 +09:00
Matthieu Coudron 8981cb7b68 owamp: init at 3.5.6
A tool for performing one-way active measurements.
https://github.com/perfsonar/owamp

This is the reference implementation for the IETF rfc
https://tools.ietf.org/html/rfc4656
2018-06-05 22:15:06 +09:00
Matthieu Coudron 0d17a57afa pythonPackages.libnl-python: init at 3.4.0
Netlink is the userspace <-> kernelspace communication protocol.
2018-05-21 18:52:16 +09:00
Matthieu Coudron d9dadce758 libnl: 3.3.0 -> 3.4.0 2018-05-21 18:51:34 +09:00
Matthieu Coudron b75a9599b4 release notes: mention iproute2 module 2018-05-15 21:55:10 +09:00
Matthieu Coudron 1e0975f4c0 iproute2: module to create rt_table file & co
When doing source routing/multihoming, it's practical to give names to routing
tables. The absence of the rt_table file in /etc make this impossible.
This patch recreates these files on rebuild so that they can be modified
by the user see NixOS#38638.

iproute2 is modified to look into config.networking.iproute2.confDir instead of
/etc/iproute2.
2018-05-15 21:55:04 +09:00
Matthieu Coudron ba4b1d2bee neovim: fix gperf error on dev-version
[ 50%] Generating auto/api/private/dispatch_wrappers.c.generated.h, ../../include/api/private/dispatch_wrappers.h.generated.h
[ 50%] Generating auto/funcs.generated.h, ../../funcs_data.mpack
/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash: ../../../.deps/usr/bin/gperf: No such file or directory
2018-05-13 07:21:34 +09:00
Matthieu Coudron eb2ba8ac0d pythonPackages.configobj: enable tests
I found a bug in configobj and wanted to run the testsuite to confirm it
was a bugs rather than a nixos oddity. Now that tests work let's upstream it.
2018-05-11 12:10:12 +09:00
Matthieu Coudron ab613b9336 wireshark: run binary from nix-shell
when in a shell, export variable WIRESHARK_RUN_FROM_BUILD_DIRECTORY to be able to run the newly built wireshark
else one get:
./build/run/wireshark: error while loading shared libraries: libwscodecs.so.0: cannot open shared object file: No such file or directory

see https://github.com/NixOS/nixpkgs/issues/29638
2018-05-09 14:39:08 +09:00
Matthieu Coudron f5e169c608 openntpd: make -s flag work
after seeing
`adjtime failed: Invalid argument` in my syslog, I tried using
`ntpd -s` but it would trigger
`/etc/ntpd.conf: No such file or directory`
see https://github.com/NixOS/nixpkgs/issues/31885

Instead of running the daemon with a specific config file, use the
standard file so that user are able to use the ntp executable without
having to look for the current config file.
2018-05-08 19:15:57 +09:00
Matthieu Coudron 8585bd87a0 linux_mptcp: 0.93 -> 0.94
As mptcp is still evolving, it's good to keep at least the 2 last
versions for regression-testing.
2018-05-02 16:09:12 +09:00
Matthieu Coudron ca0604190e qemu-guest-agent: init module
Allow out of band communication between qemu VMs and the host.
Useful to retrieve IPs of VMs from the host (for instance when libvirt can't analyze
DHCP requests because VMs are configured with static addresses or when
there is connectivity default).
2018-04-27 18:32:15 +09:00
Matthieu Coudron a050133e9f linux-mptcp: enable advanced schedulers 2018-04-26 20:00:58 +09:00
Matthieu Coudron 9f7eabcc21 kernel: fix boot.consoleLogLevel description
The current description describes the opposite influence of the setting
https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt
2018-04-17 10:45:30 +09:00
Matthieu Coudron 863c2908f2 ns-3: init at 28.0
ns-3 is a discrete event C++ network simulator developed at www.nsnam.org .

Python bindings & manual building are disabled by default but you can
override it.
2018-04-06 13:54:20 +09:00
Matthieu Coudron 94c1b10dd1 pybindgen: init at 0.18.0
Helps generating python bindings to C. Required to generate
www.nsnam.org bindings.
2018-04-05 19:15:58 +09:00
Matthieu Coudron 604aa24f85 pygccxml: init at 1.9.1
Python library to play with castxml output, aka your program's clang-produced AST.
2018-04-05 19:15:58 +09:00
Matthieu Coudron 37210d4938 castxml: init at 20180403
4 tests are ignored because the regex don't match with custom clang
output see:
https://github.com/CastXML/CastXML/issues/90
2018-04-05 18:26:37 +09:00
Matthieu Coudron 2355189b15 gnulib: symlink include/ to lib/
so that some programs can find the headers automatically instead of
adding -I${gnulib}/lib
2018-03-27 07:37:15 +09:00
Matthieu Coudron a8403b64f8 gpgme: add withPython ? false to enable bindings
Useful for MUAs mostly, like alot
2018-03-21 10:21:39 +09:00
Matthieu Coudron ee482f85bf service_identity: cosmetic changes 2018-03-21 10:21:38 +09:00
Matthieu Coudron d9292429e7 alot: 0.5.1 to 0.7.0
- added gnupg to checkInputs
- generate manpage (optional)
- move alot.desktop file to $out/share/applications
- disabled tests as they need the network (dependency on twisted)

Thanks to Sarah Brofeldt, Ben Mcginnes for their help (and other) and
to FRidh for the repeated careful reviews.
2018-03-21 10:21:38 +09:00
Matthieu Coudron 366c79e17f pythonPackages.neovim: 0.2.3 -> 0.2.4
required to work with latest deoplete for instance
2018-03-20 18:38:44 +09:00
Matthieu Coudron 33b0ad83e9 qemu-vm: passing QEMU_NET_OPTS would fail
because of a change in #36850.
spotted by @jtojnar https://github.com/NixOS/nixpkgs/commit/b7a2333ebe7a0916c9791f3b7a839e8095c39f7f#commitcomment-28134992
2018-03-17 23:21:27 +09:00
Matthieu Coudron c476d2f592 grub-install.pl: more details on blkid failure 2018-03-12 17:32:59 +09:00
Matthieu Coudron 7b7860ff89 build-vm: remove trailing dot from script path
Allow to double click/middle click paste path a bit quicker.
2018-03-12 17:31:24 +09:00
Matthieu Coudron b7a2333ebe qemu-vm: removes warning when running build-vm
get rid of deprecated qemu commands
2018-03-12 17:29:55 +09:00
Matthieu Coudron 3ccc65a36c buildLinux: allow to override arch/modules/builtin
- Easy override of autoModules and preferBuiltin and kernelArch parameters (currently living in `hostSystem` set).
2018-03-08 12:47:06 +09:00
Matthieu Coudron 600e977898 buildLinux: removes unnecessary parameters
and passes parameters in a single set
2018-03-08 12:45:39 +09:00
Matthieu Coudron 88dae1a1c8 protocol: module to application
protocol really is a "buildPythonApplication" rather than a
buildPythonPackage".
2018-02-19 07:04:16 +09:00
Matthieu Coudron fe4f4de1c9 strongswan module: make it work with ipsec l2tp
l2tp saves its secrets into /etc/ipsec.d but strongswan would not read
them. l2tp checks for /etc/ipsec.secrets includes /etc/ipsec.d and if
not tries to write into it.

Solution:
Have the strongswan module create /etc/ipsec.d and /etc/ipsec.secrets
when networkmanager_l2tp is installed.
Include /etc/ipsec.secrets in
/nix/store/hash-strongswan/etc/ipsec.secrets so that it can find l2tp
secrets.

Also when the ppp 'nopeerdns' option is used, the DNS resolver tries to
write into an alternate file /etc/ppp/resolv.conf. This fails when
/etc/ppp does not exist so the module creates it by default.
2018-02-07 13:21:49 +09:00
Matthieu Coudron 11a9e1c3c0 l2tp: 1.2.4 -> 1.2.8
the new version brings a new panel in IPsec settings which allows to
reenable old algorithms for IPsec phases 1/2 (dropped in recent libreswan/strongswan etc).

Also updates the homepage with the new one.
2018-02-07 13:21:49 +09:00
Matthieu Coudron f620b1b693 kernel: buildLinux replaces import ./generic.nix
- defined buildLinux as generic.nix instead of manual-config.nix. This
makes kernel derivations a tad more similar to your typical derivations.
- moved $buildRoot to within the source folder, this way it doesn't have to be created before the unpackPhase
and make it easier to work on kernel source without running the unpackPhase
2018-02-07 10:07:13 +09:00
Matthieu Coudron 04b45828c6 pulp: init at 1.6.0
A python Linear Programming API.
2018-01-30 08:56:09 +09:00
Matthieu Coudron 5de50ec002 ibus-libpinyin: 1.8.0 -> 1.9.2 2018-01-29 02:06:57 +09:00
Matthieu Coudron bee66be64a fcitx: 4.2.9.1 -> 4.2.9.5
fcitx now relies on xkeyboard_config.
2018-01-29 02:06:57 +09:00
Matthieu Coudron d14d82389c fcitx-qt5: 1.1.0 -> 1.2.1 2018-01-29 02:06:56 +09:00
Matthieu Coudron be7c4c1d7e libpinyin: 1.6.0 -> 2.1.91 2018-01-29 02:06:39 +09:00
Matthieu Coudron bef69925e3 fcitx-libpinyin: 0.3.93 -> 0.5.3
Previously optional dependencies are now made mandatory like qtwebbrowser.dev .
In order to find these libraries, I used libsForQt5.callPackage.
2018-01-29 02:06:01 +09:00
Matthieu Coudron bec047eca3 neovim: remove confusing neovim parameter
The neovim package refers to itself, hopefully it is shadowed by a
function parameter but it is confusing, let's remove it.
2018-01-25 16:38:22 +09:00
Matthieu Coudron 8b9429008e doc: add wpa_supplicant command to connect to wifi
New thin laptops don't have an ethernet port and so rely on wifi to get
access. With the minimal installer, setup wpa_supplicant can be hard if
it is the first time so here we provide an example.
2018-01-22 11:54:17 +09:00
Matthieu Coudron 91648a2f22 environment.variables: give an example 2018-01-22 10:40:23 +09:00