mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
curl,
|
|
unzip,
|
|
ncurses5,
|
|
dmidecode,
|
|
coreutils,
|
|
util-linux,
|
|
autoPatchelfHook,
|
|
makeWrapper,
|
|
}:
|
|
let
|
|
sources = {
|
|
"x86_64-linux" = {
|
|
url = "https://web.archive.org/web/20231205092714/https://www.passmark.com/downloads/pt_linux_x64.zip";
|
|
hash = "sha256-q9H+/V4fkSwJJEp+Vs+MPvndi5DInx5MQCzAv965IJg=";
|
|
};
|
|
"aarch64-linux" = {
|
|
url = "https://web.archive.org/web/20231205092807/https://www.passmark.com/downloads/pt_linux_arm64.zip";
|
|
hash = "sha256-7fmd2fukJ56e0BJFJe3SitGlordyIFbNjIzQv+u6Zuw=";
|
|
};
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
version = "11.0.1002";
|
|
pname = "passmark-performancetest";
|
|
|
|
src = fetchurl (
|
|
sources.${stdenv.system} or (throw "Unsupported system for PassMark performance test")
|
|
);
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
autoPatchelfHook
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
(lib.getLib stdenv.cc.cc)
|
|
curl
|
|
ncurses5
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm555 pt_linux_* "$out/bin/performancetest"
|
|
runHook postInstall
|
|
'';
|
|
|
|
# Prefix since program will call sudo
|
|
postFixup = ''
|
|
wrapProgram $out/bin/performancetest \
|
|
--prefix PATH ":" ${
|
|
lib.makeBinPath [
|
|
dmidecode
|
|
coreutils
|
|
util-linux
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Software tool that allows everybody to quickly assess the performance of their computer and compare it to a number of standard 'baseline' computer systems";
|
|
homepage = "https://www.passmark.com";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ neverbehave ];
|
|
platforms = builtins.attrNames sources;
|
|
mainProgram = "performancetest";
|
|
};
|
|
}
|