Commit Graph
100 Commits
Author SHA1 Message Date
Jan Malakhovski 2b94e5d934 fetchzip: simplify postFetch as per suggestions
of @veprbl, @adisbladis, and @MetaDark
2021-02-05 13:08:57 +00:00
Jan Malakhovski dcb6103bf2 fetchzip: fix extraPostFetch concatenation
4a5c49363a added some more commands after
`extraPostFetch` but concatenated them without a separating newline.

Which means, that since that commit

  fetchzip { ..., extraPostFetch = ''rm -f "$out"/some-file''; }

now actually runs the following shell command

  rm -f "$out"/some-file"chmod -R a-w "$out"

thus deleting "$out". Which is very unfortunate.

Especially since this actually happens on master for all `fetchFromBitbucket`
derivations. But since the results are fixed-output users bulding with hydra
cache enabled are not hitting this for not recently updated derivations yet.
2021-02-04 14:48:47 +00:00
Jan Malakhovski 4d680f3f3d mpv: enable openal support by default
See the previous commit.
2019-10-29 17:38:07 +01:00
Jan Malakhovski 31cf1ff4ee openalSolf: make it search its own $out for data files
Without those data files HRTF will silently fail to initialize.

It searches /usr and /usr/local by default but we don't have those paths.
It also searches XDG_DATA_DIRS but using that requires configuration by the
user. This patch makes makes it just work.

How to play with it:

- Build `mpv` with `openalSoft` support.

- cat << EOF > ~/.alsoftrc
[general]
hrtf = true
EOF

- Wear stereo headphones.

- Play a file with 6 or more channels with `mpv -ao openal $file`, e.g.
  https://archive.org/download/5.1SurroundSoundTestFilesVariousFormatsAACAC3MP4DTSWAV/5.1%20Surround%20Sound%20AAC%20Test.mp4

- Try `hrtf = false` to hear the difference.
2019-10-29 17:38:07 +01:00
Jan Malakhovski 54c8da0787 firefoxPackages.tor-browser: 8.5.4 -> 8.5.6 2019-09-24 01:54:11 +00:00
Jan Malakhovski 2eaf57541f nixos: zsh: reorder /etc/zshrc a little bit, add more helpful documentation 2019-08-24 05:48:57 +00:00
Jan Malakhovski f70e3f3738 nixos: zsh: move NixOS-specific variables from /etc/zshrc to /etc/zshenv
We want these to be set even when /etc/zshrc loading is disabled.
2019-08-24 05:36:02 +00:00
Jan Malakhovski 065c6ed96e nixos: zsh: setopt prompt_sp to workaround a zsh bug
See #38535, properly fixing the prompt seems complicated, and this seems
to work in all the ttys I checked.

Suggested by @Mic92.
2019-08-19 22:58:13 +00:00
Jan Malakhovski 39028ee8a7 anki: simplify the expression, elide superfluous wappers
As suggested by @worldofpeace.
2019-08-18 17:44:25 +00:00
Jan Malakhovski 1a11eb34a1 anki: add myself as a maintainer
(Adding to the front of the list because it was I who added this expression to
nixpkgs in e00c03101f 7 years ago. :])
2019-08-17 20:31:33 +00:00
Jan Malakhovski 2326319b38 anki: use wrapQtAppsHook from pyqtwebengine 2019-08-17 20:31:33 +00:00
Jan Malakhovski eb8e973660 pyqtwebengine: passthru wrapQtAppsHook 2019-08-17 20:31:32 +00:00
Jan Malakhovski c42f3782b0 Revert "Remove amdadlsdk and amdappsdk."
This reverts commit 08ea7c7ee2.

This was a part of #61823.

Firstly, that commit removed those attributes without removing the files
they refer to, which is strange.

Secondly, I have a very old but GPGPU-capabale AMD card which doesn't work
with newer OpenCL infrastructure and hence needs these packages to do GPGPU.
2019-06-22 00:04:49 +00:00
Jan Malakhovski 0017a06717 nixos/systemd: add an option to suppress system units 2019-04-18 10:42:11 +00:00
Jan Malakhovski e975d058cd tor-browser-bundle: inherit meta 2019-03-24 18:40:38 +00:00
Jan Malakhovski 2bc525350a treewide: stdenv.config -> config
That attribute does not exist.
2019-03-14 14:01:21 +00:00
Jan Malakhovski 67a7b42167 pkgs/stdenv/booter.nix: fix a typo 2019-03-14 14:01:20 +00:00
Jan Malakhovski 83ae1ffed4 pkgs/top-level/stage.nix: don't override overlays and config in nixpkgsFun
`nixpkgsFun` already sets them via `args`. Doing this also introduces unexpected
hard to debug errors, see the patch.
2019-03-08 11:37:20 +02:00
Jan Malakhovski 4a647dd225 pkgs/top-level: check types of nixpkgs.config
This patch simply introduces a plain simple NixOS module and passes
`nixpkgs.config` through it via `evalModules` (with some temporary hackery to
passthru undefined options).
2019-03-08 11:19:38 +02:00
Jan Malakhovski 570aed4b46 lib: add showWarnings 2019-03-08 11:19:18 +02:00
Jan Malakhovski a53b3ba091 lib: optionAttrSetToDocList: warn instead of throwing on options without descriptions
For convenience, it's not like not having a description is deadly or something.
2019-03-05 09:41:41 +00:00
Jan Malakhovski ca496b194f nixos: doc: increase maxdepth for xsltproc
See https://github.com/NixOS/nixpkgs/issues/37903#issuecomment-376618117
for details. With the previous patch and some custom modules included in
`configuration.nix` the above bug is very easy to trigger.

This is a simplest workaround I have. A proper solution would look like
https://github.com/NixOS/nixpkgs/issues/37903#issuecomment-376980838.
2019-03-05 09:41:40 +00:00
Jan Malakhovski 36aa5b691d metrics.nix: add nix-env.qaCountDrv metric
Before ae16dd1a15 `nix-env.qaCount` and
`nix-env.qaCountDrv` were equivalent, after that change that is no longer
the case so this needs a separate metric now.
2019-02-22 16:59:29 +00:00
Jan Malakhovski 8f86439f75 all-packages.nix: introduce and use dontRecurseIntoAttrs 2019-02-21 01:28:30 +00:00
Jan Malakhovski a1fec8667d treewide: assemble all fetchurlBoot uses in overrides to fetchurl itself
The only outside-curl uses of `fetchurlBoot` left are `stdenv`
and `apple-source-releases`. The latter one can probably be removed
too, but I can't test it.

Pros:

- Aggregates all behind-the-scenes insanity in a single place.

Cons:

- At the cost of 10 more derivations (but 0 new outpaths).
2019-02-19 20:55:59 +00:00
Jan Malakhovski 01d74a5382 nasm: build from source
https://nasm.us is currently down. This way is also preferable, IMHO.
2019-02-14 13:51:47 +00:00
Jan Malakhovski e295651108 virtualbox: move defaults to package file 2019-02-13 23:12:38 +00:00
Jan Malakhovski ce14636ae0 mimic: move defaults to package file
and fix some eol spaces.
2019-02-13 23:12:35 +00:00
Jan Malakhovski 15a1e879a9 deadbeef: move defaults to package file 2019-02-13 23:12:05 +00:00
Jan Malakhovski 1eea8a5f4a cmus: move defaults to package file 2019-02-13 23:12:03 +00:00
Jan Malakhovski f91e811e44 chromium: move defaults to package file
This one is a bit untrivial.
2019-02-13 23:11:29 +00:00
Jan Malakhovski fe75379459 bomi: move defaults to package file 2019-02-13 23:11:20 +00:00
Jan Malakhovski d364e682b0 pcaudiolib: move defaults to package file 2019-02-13 23:11:10 +00:00
Jan Malakhovski 578408aa16 brltty: move defaults to package file, use ALSA on Linux 2019-02-13 23:10:56 +00:00
Jan Malakhovski 9361acfff1 aegisub: move defaults to package file 2019-02-13 23:10:40 +00:00
Jan Malakhovski 20193f85e9 mplayer: move defaults to package file 2019-02-13 23:10:38 +00:00
Jan Malakhovski 13e6180fba libcardiacarrest: 12.1-7 -> 12.2.8 2019-02-03 18:30:20 -05:00
Jan Malakhovski cefbe69105 nixos: rippled: fix type
The old state is clearly a bug.
2019-02-03 20:10:13 +00:00
Jan Malakhovski 234ba7446c nixos: version: cleanup a bit 2019-02-03 20:10:12 +00:00
Jan Malakhovski 08cabdf4a9 nixos: rippled: fix indent 2019-02-03 20:10:11 +00:00
Jan Malakhovski 65f24643a8 doc: fix some indent 2019-02-03 20:10:10 +00:00
Jan Malakhovski 67223e3c8a openhmd: init at 0.3.0-rc1-20181218 2019-02-03 19:57:56 +00:00
Jan Malakhovski e8562288c0 claws-mail: move defaults to package file 2019-02-03 15:33:36 +00:00
Jan Malakhovski 9c1c9cb937 coreclr: move defaults to package file 2019-02-03 15:33:35 +00:00
Jan Malakhovski 46107a6a80 zathura: move defaults to package file 2019-02-03 15:33:34 +00:00
Jan Malakhovski 36a0ec673b ahoviewer: move defaults to package file 2019-02-03 15:33:33 +00:00
Jan Malakhovski 5bcd73c73b sox: move defaults to package file 2019-02-03 15:33:32 +00:00
Jan Malakhovski f2ff98520e openmpt123: move defaults to package file 2019-02-03 15:33:31 +00:00
Jan Malakhovski 1a69c20e60 steam: move defaults to package file 2019-02-03 15:33:30 +00:00
Jan Malakhovski c7675be3c1 sc2-headless: move defaults to package file 2019-02-03 15:33:29 +00:00
Jan Malakhovski a111b5fde4 bind: move defaults to package file 2019-02-03 15:33:28 +00:00
Jan Malakhovski be79fc5c33 libiodbc: move defaults to package file 2019-02-03 15:33:27 +00:00
Jan Malakhovski 0df915c75c gnutls, gnutls-kdh: move defaults to package file 2019-02-03 15:33:26 +00:00
Jan Malakhovski 73b2c285fe radare2, r2-for-cutter: move defaults to package file 2019-02-03 15:33:25 +00:00
Jan Malakhovski 3a7f3a1119 oraclejdk8distro, oraclejdk8psu_distro: move defaults to package file 2019-02-03 15:33:24 +00:00
Jan Malakhovski 15c52af2fe plex: move defaults to package file 2019-02-03 15:33:23 +00:00
Jan Malakhovski dd5bcb34c9 lxcfs: move defaults to package file 2019-02-03 15:33:22 +00:00
Jan Malakhovski 32e854c156 androidenv: move defaults to package file 2019-02-03 15:33:21 +00:00
Jan Malakhovski 5cf90c3b20 wxGTK28, wxGTK29, wxGTK30: move defaults to package file 2019-02-03 15:33:20 +00:00
Jan Malakhovski 1b2c28b0ee blueman: move defaults to package file 2019-02-03 15:33:19 +00:00
Jan Malakhovski be40fe7ae5 obs-studio: move defaults to package file 2019-02-03 15:33:18 +00:00
Jan Malakhovski 23cfa1d290 guvcview: move defaults to package file 2019-02-03 15:33:17 +00:00
Jan Malakhovski 04551d263c qt3: move defaults to package file 2019-02-03 15:33:16 +00:00
Jan Malakhovski 8e929441a9 opencv3, opencv4: move defaults to package file 2019-02-03 15:33:15 +00:00
Jan Malakhovski 8abaf8dfe5 fetchsvn: move defaults to package file 2019-02-03 15:33:14 +00:00
Jan Malakhovski 763dff1e20 mpv: move defaults to package file 2019-02-03 15:33:13 +00:00
Jan Malakhovski 0f4eb7f977 conky: move defaults to package file 2019-02-03 15:33:12 +00:00
Jan Malakhovski 69048c4357 xmonad_log_applet: move defaults to package file, cleanup
These are already inherited in the parent derivation.
2019-02-03 15:32:21 +00:00
Jan Malakhovski 40cde4d5d7 pcmciaUtils: move defaults to package file 2019-02-03 15:32:20 +00:00
Jan Malakhovski 7562d78023 gtk2: move defaults to package file 2019-02-03 15:32:19 +00:00
Jan Malakhovski d9db71d581 gnu-smalltalk: move defaults to package file 2019-02-03 15:32:18 +00:00
Jan Malakhovski 11e3bceff0 cairo: move defaults to package file 2019-02-03 15:32:17 +00:00
Jan Malakhovski 4bc66b1994 cntk: move defaults to package file 2019-02-03 15:32:16 +00:00
Jan Malakhovski 31aa884b7f caffe: move defaults to package file 2019-02-03 15:32:15 +00:00
Jan Malakhovski 49148a3ea2 mxnet: move defaults to package file 2019-02-03 15:32:14 +00:00
Jan Malakhovski 11b6496557 blender: move defaults to package file 2019-02-03 15:32:13 +00:00
Jan Malakhovski fa4b98ed6e xgboost: move defaults to package file 2019-02-03 15:32:12 +00:00
Jan Malakhovski 73b2577438 opensubdiv: move defaults to package file 2019-02-03 15:32:11 +00:00
Jan Malakhovski dd23a064b1 libtensorflow: move defaults to package file 2019-02-03 15:32:10 +00:00
Jan Malakhovski 88ca6dd78a cplex: move defaults to package file 2019-02-03 15:30:47 +00:00
Jan Malakhovski f37effbc99 gams: move defaults to package file 2019-02-03 15:30:46 +00:00
Jan Malakhovski ec2452dac1 scilab: move defaults to package file 2019-02-03 15:30:45 +00:00
Jan Malakhovski 4f066da1de quassel: move defaults to package file 2019-02-03 15:30:44 +00:00
Jan Malakhovski 56ee5bca69 wireshark: move defaults to package file 2019-02-03 15:30:43 +00:00
Jan Malakhovski f56be70f3f uwsgi: move defaults to package file 2019-02-03 15:30:42 +00:00
Jan Malakhovski ce75344792 stoken: move defaults to package file 2019-02-03 15:30:41 +00:00
Jan Malakhovski caff8b7f4c mjpegtools: move defaults to package file 2019-02-03 15:30:40 +00:00
Jan Malakhovski 58a2757aaa ibus-with-plugins: move defaults to package file 2019-02-03 15:30:39 +00:00
Jan Malakhovski 50153afe8e arduino-core: move defaults to package file 2019-02-03 15:30:38 +00:00
Jan Malakhovski 2cf14077f4 residualvm: move defaults to package file 2019-02-03 15:30:37 +00:00
Jan Malakhovski 1b784e5f6f subversion: move defaults to package file 2019-02-03 15:30:36 +00:00
Jan Malakhovski b5e511db7c rxvt_unicode: move defaults to package file 2019-02-03 15:30:35 +00:00
Jan Malakhovski a4cebde4f6 mercurial: move defaults to package file 2019-02-03 15:30:34 +00:00
Jan Malakhovski 866944ff52 mpd: move defaults to package file 2019-02-03 15:30:33 +00:00
Jan Malakhovski 4ec5cbc77a libgpod: move defaults to package file 2019-02-03 15:30:32 +00:00
Jan Malakhovski c1ee0a4980 aprutil: move defaults to package file 2019-02-03 15:30:31 +00:00
Jan Malakhovski 6e1e0bb213 urjtag: move defaults to package file 2019-02-03 15:30:30 +00:00
Jan Malakhovski 546c8ffef8 ssmtp: move defaults to package file 2019-02-03 15:30:29 +00:00
Jan Malakhovski 4bc9404b15 grub: move defaults to package file 2019-02-03 15:30:28 +00:00
Jan Malakhovski a4f20976fb fetchsvnssh: move defaults to package file 2019-02-03 15:30:27 +00:00