Skip to content

Commit

Permalink
odoo: update, fix update script
Browse files Browse the repository at this point in the history
odoo: enable tests

Co-authored-by: Robert Schütz <[email protected]>
Signed-off-by: phanirithvij <[email protected]>
  • Loading branch information
2 people authored and Erethon committed Oct 8, 2024
1 parent b050e89 commit 4e9ed75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pkgs/by-name/od/odoo/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, wkhtmltopdf
, nixosTests
, odoo_version ? "17.0"
, odoo_release ? "20240610"
, odoo_release ? "20240925"
}:

let
Expand Down Expand Up @@ -35,12 +35,9 @@ in python.pkgs.buildPythonApplication rec {
# find latest version on https://nightly.odoo.com/${odoo_version}/nightly/src
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
name = "${pname}-${version}";
hash = "sha256-blibGJyaz+MxMazOXhPbGBAJWZoGubirwSnjVYyLBJs="; # odoo
hash = "sha256-MY8dj0WJOEYVA99vdp+N/xMkUpX7/ThTcIFkhtRRbQA="; # odoo
};

# needs some investigation
doCheck = false;

makeWrapperArgs = [
"--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf rtlcss ]}"
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/od/odoo/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ fi

cd "$(dirname "${BASH_SOURCE[0]}")"

sed -ri "s| hash.+ # odoo| hash = \"$(nix-prefetch -q fetchzip --url "https://nightly.odoo.com/${VERSION}/nightly/src/odoo_${latestVersion}.zip")\"; # odoo|g" package.nix
sed -ri "s| hash.+ # odoo| hash = \"$(nix-prefetch -q fetchzip --option extra-experimental-features flakes --url "https://nightly.odoo.com/${VERSION}/nightly/src/odoo_${latestVersion}.zip")\"; # odoo|g" package.nix
sed -ri "s|, odoo_version \? .+|, odoo_version ? \"$VERSION\"|" package.nix
sed -ri "s|, odoo_release \? .+|, odoo_release ? \"$RELEASE\"|" package.nix

0 comments on commit 4e9ed75

Please sign in to comment.