Commit Graph

12 Commits

Author SHA1 Message Date
Hayden Gray
5c1a387a28
odin: 0-unstable-2024-08-05 -> 0-unstable-2024-10-12 (#348138) 2024-10-19 06:05:10 +02:00
Peder Bergebakken Sundt
d6ca5ed287 treewide: remove empty build inputs
Done with

```sh
regex='\s*(nativeBuild|build|check|nativeCheck)Inputs *= *\[ *\];'
rg "^$regex$" -l | xe sd "\n\n$regex\n" "\n"
rg "^$regex$" -l | xe sd "\n$regex\n" "\n"
rg "^$regex$" -l | xe sd "\n$regex\n" "\n"
```
2024-10-04 19:03:59 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
znaniye
0ac0628f4e odin: dev-2024-07 -> 0-unstable-2024-08-05 2024-08-05 16:49:33 -03:00
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
zimbatm
77977ae4ad odoo: add missing geoip2 dependency 2024-07-16 21:55:13 +02:00
zimbatm
2c9f7408ca odoo: add missing lxml-html-clean dependency
Fixes this runtime error:

    lxml.html.clean module is now a separate project lxml_html_clean.
    Install lxml[html_clean] or lxml_html_clean directly.
2024-07-16 21:55:13 +02:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
Bintang Adiputra Pratama
9ce24ad5fd
odin: copy shared/ directory into ODIN_ROOT 2024-07-10 06:58:01 +07:00
znaniye
33b3da5b32 odin: migrate to by-name 2024-07-04 15:35:51 -03:00
Sirio Balmelli
934bfb6c36
odoo: 17.0.20240507 -> 17.0.20240616
Make it possible to override 'odoo_version' and 'odoo_release'
by moving them to the input attribute set with default values.

Modify 'update.sh' so it correctly updates these defaults.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2024-06-19 13:35:22 +00:00
Sirio Balmelli
8306ac3d7e
odoo: migrate to pkgs/by-name
Remove original 'pkgs/applications/finance/odoo' directory.

Update 'pkgs/applications/finance/odoo/update.sh'
to point to the nightly builds archive for odoo, ignoring Docker.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2024-06-19 13:35:21 +00:00