I am trying to build a nix package for the datomic database.
here is the derivation so far:
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "datomic-${version}";
version = "0.9.5561";
src = fetchurl {
url = "https://my.datomic.com/downloads/free/${version}";
sha256 = "145c3yx9ylmvvxmwgk2s14cdirxasdlglq3vs9qsnhyaz5jp1xjh";
};
}
The URL:
https://my.datomic.com/downloads/free/0.9.5561
IS a zip file, without the zip extension, so fetchurl
is throwing the following error:
unpacking source archive /nix/store/rrv926023hmbvcxc7r421mk1l0x1537c-0.9.5561
do not know how to unpack source archive /nix/store/rrv926023hmbvcxc7r421mk1l0x1537c-0.9.5561
builder for ‘/nix/store/bhmrgkjqbha5p5cf79xvqwkqwr3rfjfk-datomic-0.9.5561.drv’ failed with exit code 1
Any suggestions for how to get this source, and maybe tack on a *.zip extension so it can unpack itself?