etlegacy: reduce amount of local vars

This commit is contained in:
Pol Dellaiera 2023-08-19 21:46:06 +02:00
parent 81f84d95e4
commit 918f740a67
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -24,15 +24,14 @@
cjson,
}: let
version = "2.81.1";
pkgname = "etlegacy";
mirror = "https://mirror.etlegacy.com";
fetchAsset = {
asset,
sha256,
}:
fetchurl
{
url = mirror + "/etmain/" + asset;
url = "https://mirror.etlegacy.com/etmain/${asset}";
inherit sha256;
};
pak0 =
@ -64,8 +63,8 @@
then "etl.i386"
else "etl.x86_64";
in
stdenv.mkDerivation rec {
pname = pkgname;
stdenv.mkDerivation {
pname = "etlegacy";
inherit version;
src = fetchFromGitHub {