Commit 34f59806 authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

nut: 2.8.2 -> 2.8.3

https://github.com/networkupstools/nut/releases/tag/v2.8.3

Use the new --with-systemdsystempresetdir= option to avoid install error
where nut tries to install files to the systemd Nix store path.
parent 4ede303c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -25,11 +25,11 @@

stdenv.mkDerivation rec {
  pname = "nut";
  version = "2.8.2";
  version = "2.8.3";

  src = fetchurl {
    url = "https://networkupstools.org/source/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz";
    sha256 = "sha256-5LSwy+fdObqQl75/fXh7sv/74132Tf9Ttf45PWWcWX0=";
    sha256 = "sha256-1soX8LOQA7rHZJ6xerSnE+TV/KqP0a7cooNX1Z3wle0=";
  };

  patches = [
@@ -76,6 +76,7 @@ stdenv.mkDerivation rec {
    "--with-all"
    "--with-ssl"
    "--without-powerman" # Until we have it ...
    "--with-systemdsystempresetdir=$(out)/lib/systemd/system-preset"
    "--with-systemdsystemunitdir=$(out)/lib/systemd/system"
    "--with-systemdshutdowndir=$(out)/lib/systemd/system-shutdown"
    "--with-systemdtmpfilesdir=$(out)/lib/tmpfiles.d"