odoo: use fetchzip

This commit is contained in:
Maciej Krüger 2023-08-28 00:07:38 +02:00
parent 9fa3a8b629
commit b0ace70d46
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -1,7 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchurl , fetchzip
, python310 , python310
, nodePackages , nodePackages
, wkhtmltopdf , wkhtmltopdf
@ -53,17 +53,12 @@ in python.pkgs.buildPythonApplication rec {
format = "setuptools"; format = "setuptools";
# latest release is at https://github.com/odoo/docker/blob/master/16.0/Dockerfile # latest release is at https://github.com/odoo/docker/blob/master/16.0/Dockerfile
src = fetchurl { src = fetchzip {
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.tar.gz"; url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-DV5JBY+2gq5mUfcvN9S5xkd+ufgEBjvyvBY1X7pPFPk="; # odoo hash = "sha256-pSycpYSiqJ6DKENvCWwLz+JaPUXT5dmaq8x4Aency60="; # odoo
}; };
unpackPhase = ''
tar xfz $src
cd odoo*
'';
# needs some investigation # needs some investigation
doCheck = false; doCheck = false;