Commit Graph

886 Commits

Author SHA1 Message Date
John Ericson
bc9f471997 Merge pull request #27797 from grahamc/fixed-lib
Convert libs to a fixed-point
2017-09-19 10:52:15 -04:00
Graham Christensen
152c63c9ff
Convert libs to a fixed-point
This does break the API of being able to import any lib file and get
its libs, however I'm not sure people did this.

I made this while exploring being able to swap out docFn with a stub
in #2305, to avoid functor performance problems. I don't know if that
is going to move forward (or if it is a problem or not,) but after
doing all this work figured I'd put it up anyway :)

Two notable advantages to this approach:

1. when a lib inherits another lib's functions, it doesn't
   automatically get put in to the scope of lib
2. when a lib implements a new obscure functions, it doesn't
   automatically get put in to the scope of lib

Using the test script (later in this commit) I got the following diff
on the API:

  + diff master fixed-lib
  11764a11765,11766
  > .types.defaultFunctor
  > .types.defaultTypeMerge
  11774a11777,11778
  > .types.isOptionType
  > .types.isType
  11781a11786
  > .types.mkOptionType
  11788a11794
  > .types.setType
  11795a11802
  > .types.types

This means that this commit _adds_ to the API, however I can't find a
way to fix these last remaining discrepancies. At least none are
_removed_.

Test script (run with nix-repl in the PATH):

  #!/bin/sh

  set -eux

  repl() {
      suff=${1:-}
      echo "(import ./lib)$suff" \
          | nix-repl 2>&1
  }

  attrs_to_check() {
      repl "${1:-}" \
          | tr ';'  $'\n' \
          | grep "\.\.\." \
          | cut -d' ' -f2 \
          | sed -e "s/^/${1:-}./" \
          | sort
  }

  summ() {
      repl "${1:-}" \
          | tr ' ' $'\n' \
          | sort \
          | uniq
  }

  deep_summ() {
      suff="${1:-}"
      depth="${2:-4}"
      depth=$((depth - 1))
      summ "$suff"

      for attr in $(attrs_to_check "$suff" | grep -v "types.types"); do
          if [ $depth -eq 0 ]; then
              summ "$attr" | sed -e "s/^/$attr./"
          else
              deep_summ "$attr" "$depth" | sed -e "s/^/$attr./"
          fi
      done
  }

  (
      cd nixpkgs

      #git add .
      #git commit -m "Auto-commit, sorry" || true
      git checkout fixed-lib
      deep_summ > ../fixed-lib
      git checkout master
      deep_summ > ../master
  )

  if diff master fixed-lib; then
      echo "SHALLOW MATCH!"
  fi

  (
      cd nixpkgs
      git checkout fixed-lib
      repl .types
  )
2017-09-16 21:36:43 -04:00
Jörg Thalheim
419869269d Merge pull request #28635 from ThomasMader/ldc
Init ldc at 1.3.0, fix bootstrap dmd build, fix dtools test, run dmd-testsuite in checkPhase and fix Foundation framework
2017-09-15 10:32:10 +01:00
Muhammad Herdiansyah
0e09b79bcc
maintainer: change email 2017-09-15 10:17:12 +02:00
Frank Doepper
9c4233f7b6 oysttyer: init at 2.9.1
A Perl Console Twitter Client
2017-09-13 16:38:15 +02:00
Jean-Philippe Bernardy
1ba197f225 make my maintainer handle match my github username 2017-09-12 15:17:18 +02:00
Matthieu Coudron
f31c6c150a python.pkgs.secretstorage: init at 2.3.1 2017-09-07 09:28:02 +02:00
Gabriel Adomnicai
7c08e86be9 mmake: init at 1.2.0 (#28904)
* Package for mmake

* Package for mmake - build from sources

* Package name update

* Added maintainers
2017-09-05 15:00:22 +01:00
Laure Tavard
bf491f8794 cdo: init at 1.7.2 (#22496) 2017-09-05 13:40:20 +01:00
Michele Catalano
4ea1d49643 nexus: Add module for nexus.
Add also myself as maintainer
Add simple test of the nexus service
2017-09-04 22:32:02 +02:00
Andrew Cobb
9dc256099f kupfer: init at 319 (#28719)
* kupfer: init at 319

* kupfer: wrap with wrapGAppsHook

* kupfer: fixing up runtime dependencies

* kupfer: added cobbal as maintainer
2017-09-02 14:11:10 +01:00
Thomas Mader
8a2a3dad80 ldc: Init at 1.3.0 2017-09-02 08:30:17 +02:00
Jörg Thalheim
bf03f3c4cb Merge pull request #28570 from sorpaas/btc1-init
btc1: init at 1.14.5
2017-08-29 11:52:51 +01:00
Claas Augner
03b08fca66 nextcloud-client 2.3.2 (#28645)
* nextcloud-client: init at 2.3.2

* nextcloud-client: nitpicks
2017-08-28 21:33:51 +01:00
Alvar
ffa499f9ec et: init at 2017-03-04 (#28427) 2017-08-26 13:36:31 +01:00
Phil
4f2935390e nixos/usbguard: create package and module (#28363)
* nixos/usbguard: create package and module

No usbguard module or package existed for NixOS previously. USBGuard
will protect you from BadUSB attacks. (assuming configuration is done
correctly)

* nixos/usbguard: remove extra packages

Users can override this by themselves.

* nixos/usbguard: add maintainer and fix style
2017-08-25 23:35:18 +01:00
Wei Tang
aabdd37cb9 btc1: init at 1.14.5
A portion of Bitcoin users (including the super-majority of the
miners) decided to hard fork to segwit2x around this November. At that
time this will not be compatible with the Bitcoin Core client. 1.14.5
is known as "the Production Release".
2017-08-26 01:05:46 +08:00
Jörg Thalheim
6ec7c5cff2 Merge pull request #28488 from alunduil/add-alunduil-maintainer
add alunduil as collection-json maintainer
2017-08-25 13:16:06 +01:00
WilliButz
3ac73fbb81
maintainers: add myself 2017-08-24 21:20:03 +02:00
Alex Brandt
8b4fec00e0 add alunduil as collection-json maintainer 2017-08-22 18:31:08 -05:00
Dmitry Marakasov
6461b609db Fix maintainer email 2017-08-22 19:07:42 +02:00
Christian Albrecht
964799e556 sks and pgpkeyserver-lite modules: init (#27515)
* modules sks and pgpkeyserver-lite:
  runs the sks keyserver with optional nginx proxy for webgui.
* Add calbrecht to maintainers
* module sks: fix default hkpAddress value
* module pgpkeyserver-lite: make hkpAddress a string type option
  and use (builtins.head services.sks.hkpAddress) as default value
* module sks: remove leftover service dependencies
2017-08-22 12:27:00 +02:00
Divam
e5a43bd408 openfst: init at 1.6.3 (#28430) 2017-08-22 09:39:22 +02:00
Klaas van Schelven
53d67bcc26 readline 7.0 -> 7.0.3
Discussion: https://groups.google.com/forum/#!topic/nix-devel/agupzdm352Q
2017-08-18 08:55:44 +02:00
vinymeuh
5ac2ad11ad maintainers: add vinymeuh 2017-08-15 21:36:02 +02:00
Sasha Delly
f66b765f76 lib/maintainers.nix: added sdll 2017-08-13 22:41:30 +02:00
rybern
d06ab41c85 moon-buggy: init at 1.0.51 (#28165) 2017-08-11 22:32:59 +02:00
Daiderd Jordan
8c86ce707e Merge pull request #28034 from kiloreux/libopencore
opencore-amr init at 0.1.5
2017-08-08 19:25:53 +02:00
kiloreux
66e5a9f43f
Fix typo 2017-08-08 17:09:19 +01:00
kiloreux
49fd201ea3
Fix typo 2017-08-08 15:44:05 +01:00
kiloreux
21b6e9cc05
Add kiloreux as maintainer 2017-08-08 08:07:55 +01:00
Casey Rodarmor
2141086af8 python.pkgs.feedgen: init at 0.5.1 2017-08-07 23:58:39 -07:00
Daiderd Jordan
4e24cc32bc Merge pull request #27544 from cse-bristol/linode-api-python
linode-api: init at 4.1.1b2
2017-08-05 17:40:33 +02:00
John Wiegley
6ff50dc164 Merge pull request #27918 from Zimmi48/coq-update
Coq update
2017-08-04 15:29:18 -07:00
Daiderd Jordan
0747cf9cc2 Merge pull request #27863 from mpcsh/master
material-icons-ttf: init at 3.0.1
2017-08-04 22:47:50 +02:00
Théo Zimmermann
057ffcf0dd coq: adding myself to the maintainers 2017-08-04 19:52:55 +02:00
Tim Steinbach
c6fc73b5bc Merge pull request #26842 from lluchs/vivaldi-ffmpeg-codecs
vivaldi: add support for proprietary codecs
2017-08-04 09:00:59 -04:00
Mark Cohen
bb6bbce003 material-icons-ttf: init at 3.0.1
There was no package for this icon set, and now there is!
2017-08-02 02:48:27 -04:00
Sauyon Lee
f416d59ea4 numix-sx-gtk-theme: init at 2017-04-24 2017-08-01 17:12:30 +01:00
derchris
57b15422d9 xtermcontrol: init at 3.3 2017-07-31 23:17:35 +02:00
Charles Strahan
2b57cb9169 Merge pull request #25980 from nyarly/bundlerenv_usecases
BundlerEnv, now with groups and paths
2017-07-28 23:22:21 -04:00
Alexey Lebedeff
1d72b7345f dosbox-unstable: init at 2017-07-02
As current stable version segfaults when playing HoMM2, as described at
https://www.reddit.com/r/linux_gaming/comments/4dxfei/dosbox_segmentation_fault_core_dumped/

Also some missing dependencies (compared to stable version) were added:
- SDL_sound - for mounting .cue files with compressed sound
- SDL_net - for IPX support
- libpng - for making screenshots
2017-07-28 11:20:56 +03:00
Muhammad Herdiansyah
d31e7ee1bd nawk: init at 20121220 2017-07-27 21:51:10 +07:00
William Casarin
77e9a04a2b maintainers: update my(jb55) email 2017-07-26 10:44:50 -07:00
Glenn Searby
de0fb400bf linode-api: init at 4.1.1b1
Added Linode's official Python library for their v4 API.

This should assist with adding Linode support to Nixops (see:
https://github.com/NixOS/nixops/issues/198).

Note that this API is still in beta and subject to changes.
2017-07-21 14:25:48 +01:00
Elijah Caine
1fef42dde9 container-linux-config-transpiler: init at 0.4.1 (#27486) 2017-07-19 08:30:51 +01:00
Benno Fünfstück
ae28f5cac8 Merge pull request #27455 from TomSmeets/hidlisten
hid-listen: init at 1.01
2017-07-18 15:30:12 +02:00
Tom Smeets
bcbcbd09d3 maintainers: Add myself (Tom Smeets) 2017-07-17 21:05:07 +02:00
hhm
c61da1b383 add self (hhm) to maintainers 2017-07-14 06:54:20 +01:00
GRBurst
fe768392e2 Add GRBurst as maintainer 2017-07-13 13:56:22 +01:00