odoo: use fetchzip
This commit is contained in:
parent
9fa3a8b629
commit
b0ace70d46
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue