Merge pull request #145540 from WolfangAukang/gometer

This commit is contained in:
Sandro 2022-02-28 14:45:31 +01:00 committed by GitHub
commit c921bea68e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib, stdenv, fetchurl, rpmextract, wrapGAppsHook, nwjs }:
stdenv.mkDerivation rec {
pname = "gometer";
version = "5.2.0";
src = fetchurl {
url = "https://gometer-prod-new-apps.s3-accelerate.amazonaws.com/${version}/goMeter-linux64.rpm";
sha256 = "sha256-E53sVvneW2EMPz9HNCgbGuHnDlVihE+Lf+DkFIP+j28=";
};
nativeBuildInputs = [
rpmextract
wrapGAppsHook
];
dontBuild = true;
dontConfigure = true;
unpackPhase = ''
rpmextract ${src}
'';
installPhase = ''
runHook preInstall
mv usr $out
mv opt $out
mkdir $out/share/applications
mv $out/opt/goMeter/goMeter.desktop $out/share/applications/gometer.desktop
substituteInPlace $out/share/applications/gometer.desktop \
--replace '/opt/goMeter/' ""
makeWrapper ${nwjs}/bin/nw $out/bin/goMeter \
--add-flags $out/opt/goMeter/package.nw
runHook postInstall
'';
meta = with lib; {
description = "Analytic-Tracking tool for GoLance";
homepage = "https://golance.com/download-gometer";
license = licenses.unfree;
maintainers = with maintainers; [ wolfangaukang ];
};
}

View file

@ -22414,6 +22414,8 @@ with pkgs;
gmailctl = callPackage ../applications/networking/gmailctl { }; gmailctl = callPackage ../applications/networking/gmailctl { };
gometer = callPackage ../applications/misc/gometer { };
gomp = callPackage ../applications/version-management/gomp { }; gomp = callPackage ../applications/version-management/gomp { };
gomplate = callPackage ../development/tools/gomplate {}; gomplate = callPackage ../development/tools/gomplate {};