Commit Graph

2074 Commits

Author SHA1 Message Date
DavHau
6ddb9a7f5e override/python: fix devShells for nvidia packages 2024-03-26 05:53:26 +00:00
DavHau
306e5bff07 pythonEnv: init
Add experimental one-liner command to create python environments.

```command
$ nix run github:nix-community/dream2nix#__pythonEnv requests whisper-ctranslate2
...

$ python -c "import requests; print('imported requests')"
imported requests

$ whisper-ctranslate2 --version
whisper-ctranslate2 0.4.1
```
2024-03-26 05:03:45 +00:00
DavHau
beceb215cc examples/python: fix apache-airflow example 2024-03-25 06:15:31 +00:00
DavHau
e25aceb07a fetchPipMetadata: fix build of mitmproxy 2024-03-25 06:15:31 +00:00
DavHau
060ca6c38a filter-pypi-responses.py: format 2024-03-25 06:15:31 +00:00
github-actions[bot]
455170b457 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
  → 'github:NixOS/nixpkgs/e1d501922fd7351da4200e1275dfcf5faaad1220' (2024-03-23)
2024-03-25 06:15:31 +00:00
github-actions[bot]
90e6508c68 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
  → 'github:NixOS/nixpkgs/e1d501922fd7351da4200e1275dfcf5faaad1220' (2024-03-23)
2024-03-25 06:15:31 +00:00
Robert Hensing
d623e6ec21 mkDerivation: fix typo in checkFlags 2024-03-22 21:02:23 +07:00
github-actions[bot]
45ec75f466 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5710127d9693421e78cca4f74fac2db6d67162b1' (2024-03-19)
  → 'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
2024-03-20 18:31:59 +00:00
github-actions[bot]
2e34911290 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5710127d9693421e78cca4f74fac2db6d67162b1' (2024-03-19)
  → 'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
2024-03-20 18:31:59 +00:00
github-actions[bot]
057505151f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/79bb4155141a5e68f2bdee2bf6af35b1d27d3a1d' (2024-03-18)
  → 'github:NixOS/nixpkgs/5710127d9693421e78cca4f74fac2db6d67162b1' (2024-03-19)
2024-03-19 18:31:28 +00:00
github-actions[bot]
bcc2c688c6 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/79bb4155141a5e68f2bdee2bf6af35b1d27d3a1d' (2024-03-18)
  → 'github:NixOS/nixpkgs/5710127d9693421e78cca4f74fac2db6d67162b1' (2024-03-19)
2024-03-19 18:31:28 +00:00
github-actions[bot]
86839949c3 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6af7e814afb3b62171eee1edc31989ee61528d25' (2024-03-17)
  → 'github:NixOS/nixpkgs/79bb4155141a5e68f2bdee2bf6af35b1d27d3a1d' (2024-03-18)
2024-03-18 18:31:48 +00:00
github-actions[bot]
ddf96a02fa flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6af7e814afb3b62171eee1edc31989ee61528d25' (2024-03-17)
  → 'github:NixOS/nixpkgs/79bb4155141a5e68f2bdee2bf6af35b1d27d3a1d' (2024-03-18)
2024-03-18 18:31:48 +00:00
DavHau
f017de2de4 mkDerivation: stop depending on all core modules
mkDerivation should be minimal, but currently it always pulls in modules like `lock` and `paths` etc. despite those not being needed for many instances, like when mkDerivation is imported by a dependency.

Modules like pip which do need some of these core modules, now need to directly depend on them.

This will remove a bunch of unneeded options which currently pollute the manual.

The remaining core dependencies of mkDerivation are now: deps, env, ui
2024-03-18 11:15:30 +00:00
github-actions[bot]
c4e13905aa flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212' (2024-03-15)
  → 'github:NixOS/nixpkgs/6af7e814afb3b62171eee1edc31989ee61528d25' (2024-03-17)
2024-03-17 18:29:58 +00:00
github-actions[bot]
c9a58c5d4a flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212' (2024-03-15)
  → 'github:NixOS/nixpkgs/6af7e814afb3b62171eee1edc31989ee61528d25' (2024-03-17)
2024-03-17 18:29:58 +00:00
DavHau
f15cc37662 mkDerivation/builtins-derivation: refactor: implementation.nix -> default.nix 2024-03-17 22:55:10 +07:00
DavHau
6bbac51494 python/pdm: hide groups as implementation detail
The most important feature of the groups module was the overriding which is a separate module now. Therefore removing the fact that groups are used from the docs to decrease the API surface to maintain.

Instead render the override and overrideAll options in the manual of pdm correctly by setting `overrideType`.
2024-03-17 15:48:07 +00:00
DavHau
41a1973ed3 groups: remove options overrides and overrideAll
...since those are now managed by the dedicated overrides module
2024-03-17 14:37:33 +00:00
DavHau
86e4b94689 docs/overrides: explain how to find options 2024-03-17 14:34:12 +00:00
DavHau
b6e6d36f9d docs: init overrides 2024-03-17 09:27:24 +00:00
DavHau
1e50686303 overrides/python: init opencv-python 2024-03-17 09:01:20 +00:00
DavHau
87c725e8db python: remove catchConflicts = false overrides
Those are not needed anymore since the hook has been improved in nixpkgs
2024-03-17 07:32:33 +00:00
DavHau
b8d00b7c98 docs: update module system intro 2024-03-17 06:04:46 +00:00
github-actions[bot]
6edfbb2c0b flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b1d47989352fcb722a1f19295a9461ed1ef8435a' (2024-03-15)
  → 'github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212' (2024-03-15)
2024-03-16 18:32:59 +00:00
github-actions[bot]
bfbe286c72 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b1d47989352fcb722a1f19295a9461ed1ef8435a' (2024-03-15)
  → 'github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212' (2024-03-15)
2024-03-16 18:32:59 +00:00
github-actions[bot]
aa1bff0183 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/db001797591bf76f7b8d4c4ed3b49233391e0c97' (2024-03-14)
  → 'github:NixOS/nixpkgs/b1d47989352fcb722a1f19295a9461ed1ef8435a' (2024-03-15)
2024-03-15 18:32:55 +00:00
github-actions[bot]
9000c66381 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/db001797591bf76f7b8d4c4ed3b49233391e0c97' (2024-03-14)
  → 'github:NixOS/nixpkgs/b1d47989352fcb722a1f19295a9461ed1ef8435a' (2024-03-15)
2024-03-15 18:32:55 +00:00
github-actions[bot]
5c2548faf1 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4008381882569ab4773f2ba0d7b7bbde8f665672' (2024-03-13)
  → 'github:NixOS/nixpkgs/db001797591bf76f7b8d4c4ed3b49233391e0c97' (2024-03-14)
2024-03-14 19:06:01 +00:00
github-actions[bot]
2a71dfbf2e flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4008381882569ab4773f2ba0d7b7bbde8f665672' (2024-03-13)
  → 'github:NixOS/nixpkgs/db001797591bf76f7b8d4c4ed3b49233391e0c97' (2024-03-14)
2024-03-14 19:06:01 +00:00
github-actions[bot]
086e2ea920 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7eeacecff44e05a9fd61b9e03836b66ecde8a525' (2024-03-12)
  → 'github:NixOS/nixpkgs/4008381882569ab4773f2ba0d7b7bbde8f665672' (2024-03-13)
2024-03-13 19:29:02 +00:00
github-actions[bot]
f3ef498e04 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7eeacecff44e05a9fd61b9e03836b66ecde8a525' (2024-03-12)
  → 'github:NixOS/nixpkgs/4008381882569ab4773f2ba0d7b7bbde8f665672' (2024-03-13)
2024-03-13 19:29:02 +00:00
DavHau
b727a07775 override: unify overriding across modules
Add options `overrides.${name}` and `overrideAll` to all language modules that manage a dependency tree.

This is done in a backward compatible fashion. Old options for overriding dependencies continue working, though those are not displayed in the manual anymore.

For the following modules the manual now suggest using the new unified override options:
- for pip: use `pip.overrides` and `pip.overrideAll` instead of  `pip.drvs`
- for nodejs-granular-v3: use `nodejs-granular-v3.overrides` and `nodejs-granular-v3.overrideAll` instead of `nodejs-granular-v3.deps`
- `php-granular`: use `php-granular.override` and `php-granular.overrideAll` instead of `php-granular.deps`
2024-03-13 14:25:41 +07:00
github-actions[bot]
cd782df677 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8c4e5e571696d4c476881cf90257c3dd0e66b0dd' (2024-03-11)
  → 'github:NixOS/nixpkgs/7eeacecff44e05a9fd61b9e03836b66ecde8a525' (2024-03-12)
2024-03-12 18:32:58 +00:00
github-actions[bot]
156b4cc1f7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8c4e5e571696d4c476881cf90257c3dd0e66b0dd' (2024-03-11)
  → 'github:NixOS/nixpkgs/7eeacecff44e05a9fd61b9e03836b66ecde8a525' (2024-03-12)
2024-03-12 18:32:58 +00:00
DavHau
63ab24d893 docs: refine public/experimental
Move some barely used modules to the experimental section to reduce surface.
Instead of the separate dev-shell module the nodejs package should have a devShell subattribute.
2024-03-12 11:25:12 +00:00
DavHau
45d941d49f docs: don't strip foreign module options
previously the options of other imported modules were not shown which gave an incomplete picture. For example the docs page for the `pip` module did not show the options prefixed with `mkDerivation` which are accepted and needed by the pip module.
It's better to have everything on one page for each module.
2024-03-12 11:05:59 +00:00
DavHau
ba4be52cdf ci: build website only on x86_64-linux to reduce build time
The website builds really slow on other platforms due to the buildbot remote builder setup.
2024-03-12 10:08:01 +00:00
DavHau
211528826c cleanup core options
- don't import eval-cache and flags modules by default (those have never been used so far)
- mark options of package-func as internal. Those are for maintainers only and don't need to be rendered by default
2024-03-12 09:41:59 +00:00
DavHau
a1d2290029 docs: fix template attr in examples readme 2024-03-12 07:33:46 +00:00
DavHau
bb13da673a checks.nix-unit: use nix-unit from nixpkgs 2024-03-12 07:09:04 +00:00
github-actions[bot]
84b7f8e7a9 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f945939fd679284d736112d3d5410eb867f3b31c' (2024-03-07)
  → 'github:NixOS/nixpkgs/8c4e5e571696d4c476881cf90257c3dd0e66b0dd' (2024-03-11)
2024-03-12 07:09:04 +00:00
github-actions[bot]
3a340fa1d5 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f945939fd679284d736112d3d5410eb867f3b31c' (2024-03-07)
  → 'github:NixOS/nixpkgs/8c4e5e571696d4c476881cf90257c3dd0e66b0dd' (2024-03-11)
2024-03-12 07:09:04 +00:00
dependabot[bot]
44ca3f4504 chore(deps): bump cachix/install-nix-action from 25 to 26
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](6004951b18...8887e596b4)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 21:39:07 +00:00
DavHau
63c9f51a43 pdm: add test for jupyterlab 2024-03-11 14:24:27 +00:00
DavHau
deb4c98014 docs: fix links to examples 2024-03-11 10:41:05 +00:00
DavHau
42838c5909 examples: cleanup and rename to simplify
- name example more consistently, eg. `{language}-packaging-{feature}` or `{language}-local-development-{feature}`
- move some examples to the modules integration tests directory instead as their purpose was mainly testing and they weren't good example
- module owned checks: import via flake if available
2024-03-09 04:45:59 +00:00
github-actions[bot]
32e62d56b0 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/58ae79ea707579c40102ddf62d84b902a987c58b' (2024-03-06)
  → 'github:NixOS/nixpkgs/f945939fd679284d736112d3d5410eb867f3b31c' (2024-03-07)
2024-03-07 18:33:48 +00:00
github-actions[bot]
80b26e6fdb flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/58ae79ea707579c40102ddf62d84b902a987c58b' (2024-03-06)
  → 'github:NixOS/nixpkgs/f945939fd679284d736112d3d5410eb867f3b31c' (2024-03-07)
2024-03-07 18:33:48 +00:00