caprine-bin.x86_64-appimage: passthru pname version src
Use pname version instead of name as appimageTools now support that Passthru pname version src for users' convenience
This commit is contained in:
parent
516ad8541a
commit
eba559008c
@ -9,16 +9,19 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "${pname}-${version}";
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage";
|
url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage";
|
||||||
name = "Caprine-${version}.AppImage";
|
name = "Caprine-${version}.AppImage";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
extracted = appimageTools.extractType2 { inherit name src; };
|
extracted = appimageTools.extractType2 { inherit pname version src; };
|
||||||
in
|
in
|
||||||
(appimageTools.wrapType2 {
|
(appimageTools.wrapType2 {
|
||||||
inherit name src;
|
inherit pname version src;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit pname version src;
|
||||||
|
};
|
||||||
|
|
||||||
profile = ''
|
profile = ''
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
@ -27,7 +30,7 @@ in
|
|||||||
extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;
|
extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
mv $out/bin/{${name},caprine}
|
mv $out/bin/{${pname}-${version},caprine}
|
||||||
|
|
||||||
mkdir -p $out/share
|
mkdir -p $out/share
|
||||||
"${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share"
|
"${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share"
|
||||||
@ -42,6 +45,4 @@ in
|
|||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
mainProgram = "caprine";
|
mainProgram = "caprine";
|
||||||
};
|
};
|
||||||
}) // {
|
})
|
||||||
inherit pname version;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user