Merge pull request #170971 from SuperSandro2000/altair
altair-graphql-client: fix niv-env version parsing
This commit is contained in:
commit
0d0b874f16
1 changed files with 3 additions and 4 deletions
|
@ -3,24 +3,23 @@
|
||||||
let
|
let
|
||||||
pname = "altair";
|
pname = "altair";
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
name = "${pname}-v${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/imolorhe/altair/releases/download/v${version}/altair_${version}_x86_64_linux.AppImage";
|
url = "https://github.com/imolorhe/altair/releases/download/v${version}/altair_${version}_x86_64_linux.AppImage";
|
||||||
sha256 = "sha256-YuG7H+7FXYGbNNhM5vxps72dqltcj3bA325e7ZbW8aI=";
|
sha256 = "sha256-YuG7H+7FXYGbNNhM5vxps72dqltcj3bA325e7ZbW8aI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extract { inherit name src; };
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||||
in
|
in
|
||||||
appimageTools.wrapType2 {
|
appimageTools.wrapType2 {
|
||||||
inherit src name;
|
inherit src pname version;
|
||||||
|
|
||||||
profile = ''
|
profile = ''
|
||||||
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
|
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
mv $out/bin/${name} $out/bin/${pname}
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
||||||
|
|
||||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||||
|
|
Loading…
Reference in a new issue