Unverified Commit 335121e7 authored by Mathew Polzin's avatar Mathew Polzin Committed by GitHub
Browse files

Merge pull request #332826 from tnias/update/usbguard-1.1.3

parents ef2a65fe ec6b205b
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, installShellFiles
, nixosTests
@@ -22,27 +21,17 @@
}:

stdenv.mkDerivation rec {
  version = "1.1.2";
  version = "1.1.3";
  pname = "usbguard";

  src = fetchFromGitHub {
    owner = "USBGuard";
    repo = pname;
    rev = "usbguard-${version}";
    hash = "sha256-uwNoKczmVOMpkU4KcKTOtbcTHiYVGXjk/rVbqMl5pGk=";
    hash = "sha256-8y8zaKJfoIXc9AvG1wi3EzZA7BR2wVFLuOyD+zpBY0s=";
    fetchSubmodules = true;
  };

  patches = [
    # Pull upstream fix for gcc-13:
    #   https://github.com/USBGuard/usbguard/pull/586
    (fetchpatch {
      name = "gcc-13.patch";
      url = "https://github.com/USBGuard/usbguard/commit/22b1e0897af977cc96af926c730ff948bd120bb5.patch";
      hash = "sha256-yw0ZHcn6naHcsfsqdBB/aTgCwvEHecew/6HDmjyY2ZA=";
    })
  ];

  nativeBuildInputs = [
    autoreconfHook
    installShellFiles
@@ -94,6 +83,7 @@ stdenv.mkDerivation rec {
    '';
    homepage = "https://usbguard.github.io/";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.tnias ];
  };
}