Commit Graph

324 Commits

Author SHA1 Message Date
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Pyrox
6db0481e0e
sourcehut: Fix werkzueg patch hash 2024-05-08 21:05:41 -04:00
Pyrox
563a41d616
sourcehut: Fix werkzueg dependency build 2024-05-05 13:24:10 -04:00
Christoph Heiss
f22dd9498a
sourcehut.todosrht: 0.75.6 -> 0.75.10 2024-04-09 23:25:39 +02:00
Christoph Heiss
37737d1606
sourcehut.pastesrht: 0.15.2 -> 0.15.4 2024-04-09 23:25:38 +02:00
Christoph Heiss
608544faef
sourcehut.pagessrht: 0.15.4 -> 0.15.7 2024-04-09 23:25:38 +02:00
Christoph Heiss
579b692d61
sourcehut.metasrht: 0.68.5 -> 0.69.8 2024-04-09 23:06:29 +02:00
Christoph Heiss
eff60c841b
sourcehut.mansrht: 0.16.3 -> 0.16.5 2024-04-09 23:06:28 +02:00
Christoph Heiss
08c7388d35
sourcehut.listssrht: 0.57.14 -> 0.57.18 2024-04-09 23:06:28 +02:00
Christoph Heiss
de6ba9a555
sourcehut.hubsrht: 0.17.5 -> 0.17.7 2024-04-09 23:06:28 +02:00
Christoph Heiss
b28aab03da
sourcehut.hgsrht: 0.32.4 -> 0.33.0 2024-04-09 23:06:18 +02:00
Christoph Heiss
d551b6f3b3
sourcehut.gitsrht: 0.85.7 -> 0.85.9 2024-04-09 23:06:18 +02:00
Christoph Heiss
1435739766
sourcehut.buildsrht: 0.89.13 -> 0.89.15 2024-04-09 23:06:18 +02:00
Christoph Heiss
e7630c08a9
sourcehut.scmsrht: 0.22.23 -> 0.22.24 2024-04-09 23:06:18 +02:00
Christoph Heiss
994f015825
sourcehut.srht: 0.71.5 -> 0.71.8 2024-04-09 23:06:18 +02:00
Christoph Heiss
cf845d2e56
sourcehut: fix-gqlgen-trimpath: conditionalize go generate
These directories might not exist for all modules, so don't fail the
build if they don't.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-04-09 23:06:17 +02:00
Christoph Heiss
8edd3e2105
sourcehut: update.sh: bump gqlgenVersion on update too
This extends the current script to pull the gqlgen version from the
go.mod file in the repository root (which we check out already anyway)
and replace it as necessary.

Makes updating all packages _a lot_ less painful. And since this is now
automated, remove the default value we previously defined for
`gqlgenVersion`.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-04-09 23:06:17 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Christoph Heiss
6284603ca6
sourcehut: add override for python3 flask dependency
flask was recently updated to it's latest version 3.0.1, which in turn
breaks the override for flask-sqlalchemy 2.5.1, as this requires flask
2.x.

At the end, this then breaks (building) sourcehut.

Fixes: a24d9a6a54 ("python311Packages.flask: 2.3.3 -> 3.0.1")
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-03-05 20:17:47 +01:00
Christoph Heiss
62854c0103
sourcehut: add myself as maintainer
I worked already a lot on this stuff, esp. modules - so it just makes
sense.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:58:12 +01:00
Christoph Heiss
a7f1567815
sourcehut.{paste,scm}: replace sha256 -> hash
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:58:12 +01:00
Christoph Heiss
93d24be6c7
sourcehut.hgsrht: refactor to align with other sourcehut packages
This provides the same common structure as all other sourcehut packages,
thus opening the possibility to even further simplify this in the
future.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:58:11 +01:00
Christoph Heiss
3f35705fae
sourcehut.todosrht: 0.74.6 -> 0.75.6
Also refactor it to the same common structure as all other sourcehut
packages, thus opening the possibility to even further simplify this in
the future.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:18 +01:00
Christoph Heiss
16c4501f96
sourcehut.pagessrht: 0.13.0 -> 0.15.4
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:17 +01:00
Christoph Heiss
647b6443f0
sourcehut.metasrht: 0.64.8 -> 0.68.5
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:17 +01:00
Christoph Heiss
d9f7fe2d78
sourcehut.mansrht: 0.16.1 -> 0.16.3
Also refactor it to the same common structure as all other sourcehut
packages, thus opening the possibility to even further simplify this in
the future.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:17 +01:00
Christoph Heiss
bbdc0e9c2e
sourcehut.listssrht: 0.57.8 -> 0.57.14
Also refactor it to the same common structure as all other sourcehut
packages, thus opening the possibility to even further simplify this in
the future.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:16 +01:00
Christoph Heiss
c36acb6afe
sourcehut.hubsrht: 0.17.2 -> 0.17.5
Also refactor it to the same common structure as all other sourcehut
packages, thus opening the possibility to even further simplify this in
the future.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:16 +01:00
Christoph Heiss
50fa834713
sourcehut.gitsrht: 0.84.2 -> 0.85.7
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:15 +01:00
Christoph Heiss
e912fc1640
sourcehut.buildsrht: 0.86.10 -> 0.89.13
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:15 +01:00
Christoph Heiss
a61f7b1a91
sourcehut.srht: 0.69.15 -> 0.71.5
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-02-07 14:47:15 +01:00
Martin Weinelt
ba3412d88a
treewide: use sqlalchemy_1_4 instead of individual overrides
As long as sqlalchemy 1.4 is still maintained we should rather maintain
one derivation well, instead of many overrides barely.
2024-01-03 03:13:26 +01:00
Fabian Affolter
30748250bc sourcehut.*: add format
- add nativeBuildInputs
- disable on unsupported Python releases
2023-12-07 07:40:17 +01:00
tomberek
a2de752222
Merge pull request #267538 from nessdoor/pkgs/paste.sr.ht
sourcehut.pastesrht: add missing backend component
2023-11-28 12:40:09 -05:00
Randy Eckenrode
45be794583
sourcehut: fix build on Darwin
Fix test failures by disabline tests that use multiprocessing. On
Darwin, multiprocessing uses `spawn` instead of `fork` by default,
resulting in test failures due to pickling errors.
2023-11-14 23:04:31 -05:00
Tomas Antonio Lopez
d84b211fea sourcehut.pastesrht: 0.15.1 -> 0.15.2 2023-11-15 01:03:50 +01:00
Tomas Antonio Lopez
5476b490d4 nixos/sourcehut: compile and integrate paste.sr.ht API component 2023-11-14 11:12:14 +01:00
Tomas Antonio Lopez
3881f6f864 sourcehut.pastesrht: add myself as maintainer 2023-11-14 11:11:58 +01:00
Christoph Heiss
79dc7c3c10
sourcehut: add overrides for flask-sqlalchemy and factory-boy
These are needed, as the used sourcehut version is not compatible with
the newer major-releases for both packages.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 14:14:59 +01:00
Christoph Heiss
6648488333
sourcehut: fix logging of git/hg ssh commands
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:45 +01:00
Christoph Heiss
12fe05f0e3
sourcehut: add override for SQLAlchemy 1.x
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
900664876c
sourcehut: default gqlgenVersion 0.17.2 -> 0.17.20
Most packages now uses this version, so avoid having it specify it every
time.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
c0c73555a5
sourcehut.todosrht: 0.72.2 -> 0.74.6
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
f53540afdd
sourcehut.scmsrht: 0.22.22 -> 0.22.23
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
8d573f2df8
sourcehut.pastesrht: 0.13.8 -> 0.15.1
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
b916bbd1ea
sourcehut.pagessrht: 0.7.4 -> 0.13.0
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
558767f939
sourcehut.metasrht: 0.61.3 -> 0.64.8
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00
Christoph Heiss
30054093c9
sourcehut.mansrht: 0.15.26 -> 0.16.1
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-11-11 13:01:32 +01:00