summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorLin Jian <me@linj.tech>2024-06-03 03:13:03 +0800
committerLin Jian <me@linj.tech>2024-06-03 05:29:23 +0800
commitee46aa8a13bfcdcfa84459b98810bdde6093793f (patch)
tree5fbf437c017f9da2253500c4235b35ab8d0c77fc /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent1774db69caed6b022ddccd383c354836c95253a7 (diff)
melpaBuild: allow nix unstable version format
Before, an unstable version of melpaBuild has to be in MELPA format, which has some disadvantages: - existing update scripts cannot be reused[1] - it causes inconsistence. This patch fixes that by allowing an unstable version to be in Nix format. We heuristically detect if it is an unstable version in Nix format. If so, we convert it to MELPA format. This does not bring evaluation performance overhead. Here is my benchmark result using hyperfine-1.18.0 and nix-2.18.1. Without this patch: Benchmark 1: NIXPKGS_ALLOW_BROKEN=1 nix eval --include nixpkgs=$PWD --file . emacs.pkgs.melpaPackages --apply 'pkgSet: map (drv: drv.drvPath) (builtins.filter (p: p.type or null == "derivation") (builtins.attrValues pkgSet))' --no-eval-cache >/dev/null Time (mean ± σ): 9.126 s ± 0.048 s [User: 6.531 s, System: 0.997 s] Range (min … max): 9.056 s … 9.186 s 10 runs With this patch applied: Benchmark 1: NIXPKGS_ALLOW_BROKEN=1 nix eval --include nixpkgs=$PWD --file . emacs.pkgs.melpaPackages --apply 'pkgSet: map (drv: drv.drvPath) (builtins.filter (p: p.type or null == "derivation") (builtins.attrValues pkgSet))' --no-eval-cache >/dev/null Time (mean ± σ): 9.124 s ± 0.057 s [User: 6.522 s, System: 1.011 s] Range (min … max): 9.040 s … 9.220 s 10 runs [1]: https://github.com/NixOS/nixpkgs/blob/177c9eddadc6abbaf62a19c90cc27a9fcde08e2d/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix#L93-L108
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions