-with import ../../libs.nix;
-with nixpkgs_unstable;
+{ stdenv, fetchurl, nginx }:
let
adminer = rec {
- webRoot = pkgs.stdenv.mkDerivation rec {
+ webRoot = stdenv.mkDerivation rec {
version = "4.7.0";
name = "adminer-${version}";
- src = pkgs.fetchurl {
+ src = fetchurl {
url = "https://www.adminer.org/static/download/${version}/${name}.php";
sha256 = "1qq2g7rbfh2vrqfm3g0bz0qs057b049n0mhabnsbd1sgnpvnc5z7";
};
alias = webRoot;
index = "index.php";
extraConfig = ''
- include ${pkgs.nginx}/conf/fastcgi.conf;
+ include ${nginx}/conf/fastcgi.conf;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME ${webRoot}/index.php;