{ stdenv , lib , fetchurl , buildFHSUserEnv , bash , writeText }: let fr24feed = stdenv.mkDerivation rec { pname = "fr24feed-unwrapped"; version = "1.0.34-0"; src = fetchurl { url = "https://repo-feed.flightradar24.com/linux_x86_64_binaries/fr24feed_${version}_amd64.tgz"; sha256 = "sha256:0rsxn4nmja6j3r9wh6gifmdwwccx68lh45h0bjrkl45pwv7g39bd"; }; installPhase = '' runHook preInstall install -Dm 0755 fr24feed $out/bin/fr24feed runHook postInstall ''; }; in buildFHSUserEnv { name = "fr24feed"; targetPkgs = pkgs: with pkgs; [ bash ]; runScript = "${bash}/bin/bash ${ writeText "fr24feed" '' exec ${fr24feed}/bin/fr24feed "$@" '' }"; }