Commit Graph

1508 Commits

Author SHA1 Message Date
DavHau
016f479090 fix: fix shell.nix 2023-03-27 12:52:38 +08:00
DavHau
76863ca023
Merge pull request #496 from nix-community/v1-compat
feat(v1): init compat module for pure legacy translators
2023-03-26 18:28:07 +08:00
DavHau
f96eb79476 feat(legacy): rename legacy -> dream2nix-legacy 2023-03-26 18:04:22 +08:00
DavHau
18d8a016fa feat(v1): add nodejs package prettier 2023-03-26 17:55:21 +08:00
DavHau
6efc60882a feat(legacy): handle source, sourceOverrides, packageOverrides 2023-03-26 17:54:56 +08:00
DavHau
c69488718b refactor(utils): vendor semver.nix from poetry2nix 2023-03-26 17:53:02 +08:00
DavHau
41c56eb788 feat(legacy): make translator, builder, etc.. configurable 2023-03-26 16:35:40 +08:00
DavHau
47a1f48203 chore(v1/compat): rename to dream2nix-legacy 2023-03-26 16:20:36 +08:00
DavHau
d2ab5ae4d8 feat(v1): init compat module for pure legacy translators 2023-03-26 16:14:43 +08:00
Yusuf Bera Ertan
046dfad9b2
feat(rust): print message when writing git vendor entries 2023-03-25 22:43:23 +03:00
Yusuf Bera Ertan
f9481010cd
fix(rust): filter out duplicate git sources in subsystem attrs 2023-03-25 22:42:32 +03:00
DavHau
a67a45657b
Merge pull request #494 from raboof/php_transitive_with_target_dir
Document how to drop PHP target-dir attribute
2023-03-25 21:07:54 +08:00
Arnout Engelen
a54969c218
Document how to drop PHP target-dir attribute
Fixes #491 by documenting how to use flake `packageOverrides`
to drop the attribute
2023-03-25 11:16:34 +01:00
DavHau
3e5d61c676
Merge pull request #493 from raboof/dont-override-patch-phase
PHP: don't override patchPhase
2023-03-25 12:23:15 +08:00
DavHau
53611af00c chore(drv-parts): update drv-parts 2023-03-25 01:00:23 +08:00
DavHau
3b112c98b8 feat(nixpkgs-overrides): intersect attrs properly with mkDerivation and buildPythonPackage args 2023-03-25 00:15:18 +08:00
DavHau
1c9ac6b462 fix(mach-nix): mkDefault for builtPythonPackage.format 2023-03-25 00:15:18 +08:00
DavHau
aac492c957 fix(apps.update-locks): declare dependency in writers.nix 2023-03-25 00:15:18 +08:00
Yusuf Bera Ertan
8f99939a4a
feat(rust): prepare for duplicate dependency vendoring (#481) 2023-03-24 17:08:30 +03:00
DavHau
56d9e582bd chore(fetchPip): rename maxDate -> pypiSnapshotDate 2023-03-24 12:13:29 +08:00
DavHau
3a2adfa121 feat(flake-compat): manage default.nix and shell.nix via flake-compat 2023-03-24 12:04:04 +08:00
DavHau
b920329542
Merge pull request #500 from nix-community/fetch-pip
v1: manage all FOD hashes via `.#update-locks`
2023-03-24 11:48:35 +08:00
DavHau
88b056bf6a chore(v1/apps): rename internals 2023-03-24 11:47:49 +08:00
DavHau
f91d7e0928 chore(lock): improve extracting hash from drv file 2023-03-24 11:41:46 +08:00
DavHau
15769c35a5
Merge pull request #499 from Atry/inputFrom
Fix error when src is a local directory in pip-freeze
2023-03-23 20:53:11 +08:00
DavHau
d31b5e1954 chore(v1/drvs): update all locks 2023-03-23 18:14:12 +08:00
DavHau
b38481532d fix(lock): output FOD hashes in SRI format 2023-03-23 18:13:59 +08:00
DavHau
4b5b9886ad feat(tests): run .#update-locks before nix flake check 2023-03-23 17:29:53 +08:00
DavHau
80b0f7148d feat(v1/drvs): make all packages use the fetch-pip module and update hashes 2023-03-23 17:20:28 +08:00
DavHau
9e5219f26f feat(apps.update-locks): add script to update all locks 2023-03-23 17:19:53 +08:00
DavHau
edeec27a5b feat(mach-nix): set feakeSha256 as default for fetchPipHash 2023-03-23 17:18:17 +08:00
DavHau
c624dd0286 feat(lock): allow to define defaults for values
This can be used to prevent infinite recursions if the script for a value itself depends on the value
2023-03-23 17:17:32 +08:00
DavHau
c8ca8e6aa0 fix(fetchPypi): Use default python version for mitmproxy
- this increases stability and cache hits
2023-03-23 17:11:04 +08:00
DavHau
96873569bf feat(mach-nix): use fetch-pip and set defaults 2023-03-23 14:41:22 +08:00
DavHau
1e4e1cdaf5 chore(ansible): make use of fetch-pip module 2023-03-23 14:31:22 +08:00
DavHau
877c290f1e feat(mach-nix): allow module for pythonSources 2023-03-23 14:30:22 +08:00
DavHau
d0bf948eb5 feat(fetch-pip): init module fetch-pip 2023-03-23 14:28:49 +08:00
DavHau
17a8993d88 feat(lock): several features
- don't allow nested fields in lock file (can lead to infinite recursion)
- don't modify FOD
- shortcut if output is cached -> inherit hash from drv
2023-03-23 14:27:25 +08:00
DavHau
24dc75dbd1 chore: update drv-parts 2023-03-23 14:17:58 +08:00
Yang, Bo
81f165f528 Fix error when src is a local directory
I encountered the following error when running `nix develop`
```
       > Cannot copy . to .: destination already exists!
       > Did you specify two "srcs" with the same "name"?
       > do not know how to unpack source archive .
       For full logs, run 'nix log /nix/store/fy1mpipp9xb7ds1m081q5x7f3c53j8i2-python3.10-default.drv'.
```

The error can be fixed with this PR. See https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell-usage
2023-03-23 05:02:06 +00:00
DavHau
00f5be531b
Merge pull request #497 from phaer/fixes
small fixes + python: read egg-info metadata, not requirements.txt
2023-03-22 23:33:24 +08:00
DavHau
f2b02bc056 chore(v1): remove some packages from checks (temporarily) 2023-03-22 23:30:58 +08:00
DavHau
694d895f2c fix(nixpkgs-overrides): fix attrs from nixpkgs not applied 2023-03-22 23:17:55 +08:00
phaer
bd4b8b36a6 fix(fetchPip): re-add requirements.txt support 2023-03-22 23:17:55 +08:00
phaer
fa58684291 fix(eval-cache): prevent infinite recursion in doc 2023-03-22 23:17:55 +08:00
phaer
a47ec7511a fix(nixpkgs-overrides): only extract existing pkgs 2023-03-22 23:17:55 +08:00
phaer
eb9e70bdd2 feat(fetch-python-reqs): read egg-info, not...
...requirements.txt. The latter was a dirty hack as its meant for
environments and doesn't really include package metadata.
egg-info + dist info seems to cover most of pypi.
2023-03-22 23:17:55 +08:00
DavHau
6e9c012806
Merge pull request #498 from nix-community/lock
Add module `lock`: Generic lock file interactions
2023-03-22 23:16:51 +08:00
DavHau
dce1cbc2ef feat(updateFODHash): fixes + rename to compureFODHash 2023-03-22 23:09:08 +08:00
DavHau
a984457902 fix(lock): fix config.name refs and makeDrv 2023-03-22 12:50:03 +08:00