···1-{ lib, stdenv, fetchurl, php }:
23stdenv.mkDerivation rec {
4- version = "4.8.0";
5 pname = "adminer";
67 # not using fetchFromGitHub as the git repo relies on submodules that are included in the tar file
8 src = fetchurl {
9 url = "https://github.com/vrana/adminer/releases/download/v${version}/adminer-${version}.tar.gz";
10- sha256 = "sha256-T2LEUoIbFrMta+wP7PNci0QkFYrJZmWP3RP/JzgqUoc=";
11 };
1213 nativeBuildInputs = [
···3132 runHook postInstall
33 '';
0000003435 meta = with lib; {
36 description = "Database management in a single PHP file";
···1+{ lib, stdenv, fetchurl, php, nix-update-script }:
23stdenv.mkDerivation rec {
4+ version = "4.8.1";
5 pname = "adminer";
67 # not using fetchFromGitHub as the git repo relies on submodules that are included in the tar file
8 src = fetchurl {
9 url = "https://github.com/vrana/adminer/releases/download/v${version}/adminer-${version}.tar.gz";
10+ sha256 = "sha256-2rkNq79sc5RBFxWuiaSlpWr0rwrnEFlnW1WcoxjoP2M=";
11 };
1213 nativeBuildInputs = [
···3132 runHook postInstall
33 '';
34+35+ passthru = {
36+ updateScript = nix-update-script {
37+ attrPath = pname;
38+ };
39+ };
4041 meta = with lib; {
42 description = "Database management in a single PHP file";