From a64f36311aafd6a414f361f7d144eef7d2a22272 Mon Sep 17 00:00:00 2001 From: James Earl Douglas Date: Sat, 1 May 2021 14:58:36 -0700 Subject: [PATCH 1/2] dump1090: 4.0 -> 5.0 --- pkgs/applications/radio/dump1090/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/radio/dump1090/default.nix b/pkgs/applications/radio/dump1090/default.nix index 65afdccf8125..747751f9417c 100644 --- a/pkgs/applications/radio/dump1090/default.nix +++ b/pkgs/applications/radio/dump1090/default.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation rec { pname = "dump1090"; - version = "4.0"; + version = "5.0"; src = fetchFromGitHub { owner = "flightaware"; repo = pname; rev = "v${version}"; - sha256 = "1zacsqaqsiapljhzw31dwc4nld2rp98jm3ivkyznrhzk9n156p42"; + sha256 = "1fckfcgypmplzl1lidd04jxiabczlfx9mv21d6rbsfknghsjpn03"; }; nativeBuildInputs = [ pkg-config ]; From 6ca946ee9081cd7129afb39d469bfee921496bbf Mon Sep 17 00:00:00 2001 From: James Earl Douglas Date: Sat, 1 May 2021 16:10:45 -0700 Subject: [PATCH 2/2] Add recommended `runHook pre/postInstall` --- pkgs/applications/radio/dump1090/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/radio/dump1090/default.nix b/pkgs/applications/radio/dump1090/default.nix index 747751f9417c..927fa32bd55b 100644 --- a/pkgs/applications/radio/dump1090/default.nix +++ b/pkgs/applications/radio/dump1090/default.nix @@ -28,9 +28,13 @@ stdenv.mkDerivation rec { ]; installPhase = '' + runHook preInstall + mkdir -p $out/bin $out/share cp -v dump1090 view1090 $out/bin cp -vr public_html $out/share/dump1090 + + runHook postInstall ''; meta = with lib; {