Skip to content

Instantly share code, notes, and snippets.

@beezow
Created June 22, 2021 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beezow/9c428f2715d7e94054c1f47a763294f1 to your computer and use it in GitHub Desktop.
Save beezow/9c428f2715d7e94054c1f47a763294f1 to your computer and use it in GitHub Desktop.
Failing nix file
{lib, stdenv, fetchurl, unzip, makeDesktopItem, copyDesktopItems
, nwjs
, autoPatchelfHook
, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
let
pname = "jesc-configurator";
desktopItem = makeDesktopItem {
name = pname;
exec = pname;
icon = pname;
comment = "JESC configuration tool";
desktopName = "JESC Configurator";
genericName = "ESC configuration tool";
};
in
stdenv.mkDerivation rec {
inherit pname;
version = "1.2.9";
src = fetchurl {
url = "https://github.com/jflight-public/jesc-configurator/releases/download/v${version}/JESC-Configurator_linux64_${version}.zip";
sha256 = "704f63f4d6e05d9ac28bde73deeafb4119a8200c68029087e1453bd62431934f";
};
nativeBuildInputs = [
unzip
copyDesktopItems
autoPatchelfHook
];
buildInputs = [ nwjs gsettings-desktop-schemas gtk3 ];
installPhase = ''
mkdir -p $out/bin
cp "jesc-configurator" $out/bin
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment