From 5400b9b6f65451d41a9106fae6fc00f97d83f4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 25 Mar 2020 11:57:48 +0100 Subject: Upgrade nixos --- overlays/databases/mysql/default.nix | 6 ++++++ overlays/databases/postgresql/default.nix | 3 --- overlays/default.nix | 1 + overlays/gitweb/default.nix | 2 +- overlays/shaarli/default.nix | 7 ++++++- overlays/simp_le/default.nix | 3 +++ 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 overlays/simp_le/default.nix (limited to 'overlays') diff --git a/overlays/databases/mysql/default.nix b/overlays/databases/mysql/default.nix index 5e40284..797332b 100644 --- a/overlays/databases/mysql/default.nix +++ b/overlays/databases/mysql/default.nix @@ -3,6 +3,12 @@ self: super: rec { mariadbPAM = super.mariadb.overrideAttrs(old: { cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ]; buildInputs = old.buildInputs ++ [ self.pam ]; + postInstall = old.postInstall + '' + # FIXME: hack because mariadb cannot find dialog.so + # fixed in 20.03: https://github.com/NixOS/nixpkgs/pull/80768 + ln -s /nix $out/nix + cp "$dev"/lib/mysql/plugin/{caching_sha2_password.so,dialog.so,mysql_clear_password.so,sha256_password.so} "$out"/lib/mysql/plugin + ''; }) // (with super.mariadb; { inherit client; servier = super.mariadb; diff --git a/overlays/databases/postgresql/default.nix b/overlays/databases/postgresql/default.nix index 8d1405e..ae58987 100644 --- a/overlays/databases/postgresql/default.nix +++ b/overlays/databases/postgresql/default.nix @@ -4,8 +4,5 @@ self: super: rec { passthru = old.passthru // { psqlSchema = "11.0"; }; configureFlags = old.configureFlags ++ [ "--with-pam" ]; buildInputs = (old.buildInputs or []) ++ [ self.pam ]; - patches = old.patches ++ [ - ./postgresql_run_socket_path.patch - ]; }); } diff --git a/overlays/default.nix b/overlays/default.nix index 9fd0117..b488fd7 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -31,5 +31,6 @@ ympd = import ./ympd; doing = import ./doing; xmr-stak = import ./xmr-stak; + simp_le = import ./simp_le; } // import ./python-packages diff --git a/overlays/gitweb/default.nix b/overlays/gitweb/default.nix index aa17d22..2b9c0f6 100644 --- a/overlays/gitweb/default.nix +++ b/overlays/gitweb/default.nix @@ -1,6 +1,6 @@ self: super: { gitweb = super.gitweb.overrideAttrs(old: { - installPhase = old.installPhase + '' + postInstall = old.postInstall or "" + '' cp -r ${./theme} $out/gitweb-theme; ''; }); diff --git a/overlays/shaarli/default.nix b/overlays/shaarli/default.nix index c2fb9cc..3b37ee8 100644 --- a/overlays/shaarli/default.nix +++ b/overlays/shaarli/default.nix @@ -1,5 +1,10 @@ self: super: { - shaarli = varDir: super.shaarli.overrideAttrs (old: { + shaarli = varDir: super.shaarli.overrideAttrs (old: rec { + version = "0.10.2"; + src = self.fetchurl { + url = "https://github.com/shaarli/Shaarli/releases/download/v${version}/shaarli-v${version}-full.tar.gz"; + sha256 = "0h8sspj7siy3vgpi2i3gdrjcr5935fr4dfwq2zwd70sjx2sh9s78"; + }; patchPhase = ""; patches = (old.patches or []) ++ [ ./shaarli_ldap.patch ]; installPhase = (old.installPhase or "") + '' diff --git a/overlays/simp_le/default.nix b/overlays/simp_le/default.nix new file mode 100644 index 0000000..76891ed --- /dev/null +++ b/overlays/simp_le/default.nix @@ -0,0 +1,3 @@ +self: super: { + simp_le = self.simp_le_0_17; +} -- cgit v1.2.3