Commit f225089b authored by PapayaJackal's avatar PapayaJackal
Browse files

trunk-recorder: 5.0.1 -> 5.0.2

parent 707f5c1e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -23,13 +23,13 @@
}:
stdenv.mkDerivation rec {
  pname = "trunk-recorder";
  version = "5.0.1";
  version = "5.0.2";

  src = fetchFromGitHub {
    owner = "robotastic";
    repo = "trunk-recorder";
    rev = "v${version}";
    hash = "sha256-d2iBCSLR3kr6rnLXO3MeGVdi6+8pqXZqW/yhxAvA1cY=";
    hash = "sha256-UTowlW2xKJllYlEvfEVQEyjNmFX3oafKJThIYDx7dkc=";
  };

  cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
@@ -55,6 +55,12 @@ stdenv.mkDerivation rec {
    ++ lib.optionals hackrfSupport [ hackrf ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ mpir ];

  postPatch = ''
    # fix broken symlink
    rm -v trunk-recorder/git.h
    cp -v git.h trunk-recorder/git.h
  '';

  postFixup = ''
    wrapProgram $out/bin/trunk-recorder --prefix PATH : ${
      lib.makeBinPath [