Merge pull request #70446 from rvolosatovs/update/sidequest
sidequest: 0.3.1 -> 0.7.2
This commit is contained in:
commit
a9e6236e97
|
@ -1,8 +1,8 @@
|
||||||
{ stdenv, lib, fetchurl, buildFHSUserEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, at-spi2-atk, icu, openssl, zlib }:
|
{ stdenv, lib, fetchurl, buildFHSUserEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, at-spi2-atk, icu, openssl, zlib }:
|
||||||
let
|
let
|
||||||
pname = "sidequest";
|
pname = "sidequest";
|
||||||
version = "0.3.1";
|
version = "0.7.2";
|
||||||
|
|
||||||
desktopItem = makeDesktopItem rec {
|
desktopItem = makeDesktopItem rec {
|
||||||
name = "SideQuest";
|
name = "SideQuest";
|
||||||
exec = "SideQuest";
|
exec = "SideQuest";
|
||||||
|
@ -15,17 +15,17 @@
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/the-expanse/SideQuest/releases/download/${version}/SideQuest-linux-x64.tar.gz";
|
url = "https://github.com/the-expanse/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
|
||||||
sha256 = "1hj398zzp1x74zhp9rlhqzm9a0ck6zh9bj39g6fpvc38zab5dj1p";
|
sha256 = "035grhzqm3qdfcq5vn4a85lgb188rg60wlgc02r44cnj4sbsyyzj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p "$out/lib/SideQuest" "$out/bin"
|
mkdir -p "$out/lib/SideQuest" "$out/bin"
|
||||||
tar -xzf "$src" -C "$out/lib/SideQuest" --strip-components 1
|
tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
|
||||||
|
|
||||||
ln -s "$out/lib/SideQuest/SideQuest" "$out/bin"
|
ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
|
||||||
|
|
||||||
fixupPhase
|
fixupPhase
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}/lib:${lib.makeLibraryPath [libuuid at-spi2-atk]}:$out/lib/SideQuest" \
|
--set-rpath "${atomEnv.libPath}/lib:${lib.makeLibraryPath [libuuid at-spi2-atk]}:$out/lib/SideQuest" \
|
||||||
"$out/lib/SideQuest/SideQuest"
|
"$out/lib/SideQuest/sidequest"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in buildFHSUserEnv {
|
in buildFHSUserEnv {
|
||||||
|
@ -49,11 +49,11 @@
|
||||||
homepage = "https://github.com/the-expanse/SideQuest";
|
homepage = "https://github.com/the-expanse/SideQuest";
|
||||||
downloadPage = "https://github.com/the-expanse/SideQuest/releases";
|
downloadPage = "https://github.com/the-expanse/SideQuest/releases";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.joepie91 ];
|
maintainers = with maintainers; [ joepie91 rvolosatovs ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
targetPkgs = pkgs: [
|
targetPkgs = pkgs: [
|
||||||
sidequest
|
sidequest
|
||||||
# Needed in the environment on runtime, to make QuestSaberPatch work
|
# Needed in the environment on runtime, to make QuestSaberPatch work
|
||||||
|
@ -62,8 +62,8 @@
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
mkdir -p "$out/share/applications"
|
mkdir -p "$out/share/applications"
|
||||||
ln -s "${desktopItem}/share/applications/*" "$out/share/applications"
|
ln -s ${desktopItem}/share/applications/* "$out/share/applications"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
runScript = "SideQuest";
|
runScript = "sidequest";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue