diff --git a/README.md b/README.md index 4edc2ec..8fc4bfd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ # nixos-db-main Nixos Derivation for DB-Main (https://www.db-main.eu/). - -This needs the DB-Main files separately. The files are expected to be in a db-main directory, so that the db_main binary in in ./db-main/bin/db_main. This has been tested for version 11.0.2 . diff --git a/default.nix b/default.nix index 0035a7a..7591c4c 100644 --- a/default.nix +++ b/default.nix @@ -3,7 +3,13 @@ pkgs.stdenv.mkDerivation { pname = "db-main"; version = "1.0"; - src = ./db-main; + #src = ./db-main; + src = builtins.fetchurl { + url = "https://projects.info.unamur.be/dbmain/files/dbm-1102-linux-amd64-setup.tar.gz"; + }; + + umpackCmd = "tar -xzf $src"; + nativeBuildInputs = [ pkgs.makeWrapper pkgs.patchelf