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>
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.
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>
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>
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>
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>
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>
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>
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.
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>
Newer version of the gitsrht-api service call setrlimit() on startup,
thus allow it in the `SystemCallFilter` definition for the service.
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
In 787af0f79f
I had to change ${go-modules} to $goModules to allow overrideAttrs to work;
However, env vars cannot contain -, so i had to change go-modules too.
This in turn broke nix-update because it uses the go-modules attr.
Instead of making nix-update more complicated, make go-modules naming match cargoDeps.
`fd --type f | xargs sd '\bgo-modules\b' 'goModules'`
and revert change to pkgs/applications/misc/dstask/default.nix
and pkgs/servers/http/dave/default.nix
and pkgs/os-specific/darwin/plistwatch/default.nix
release note added
Nixpkgs convention is to only add attributes for deprecation throws
when config.allowAliases hasn't been explicitly disabled. This is
useful as it makes it easy to test building all non-deprecated
packages:
nix-build --arg config '{ allowAliases = false; }' -A sourcehut
Precedent for this convention in Nixpkgs is easy to find by grepping
for "config.allowAliases".
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.