1 { lib, appimageTools, runCommand, curl, gnugrep, cacert }:
3 appimageTools.wrapType1 rec {
7 src = runCommand "PureRef-${version}_x64.Appimage" {
8 nativeBuildInputs = [ curl gnugrep cacert ];
9 outputHash = "sha256-da/dH0ruI562JylpvE9f2zMUSJ56+T7Y0xlP/xr3yhY=";
11 key="$(curl "https://www.pureref.com/download.php" --silent | grep '%3D%3D' | cut -d '"' -f2)"
12 curl "https://www.pureref.com/files/build.php?build=LINUX64.Appimage&version=${version}&downloadKey=$key" --output $out
15 extraInstallCommands = ''
16 mv $out/bin/${pname}-${version} $out/bin/${pname}
20 description = "Reference Image Viewer";
21 homepage = "https://www.pureref.com";
22 license = licenses.unfree;
23 maintainers = with maintainers; [ elnudev ];
24 platforms = [ "x86_64-linux" ];
25 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];