···
9
+
stdenvNoCC.mkDerivation (finalAttrs: {
10
+
pname = "y-cruncher";
11
+
version = "0.8.6.9545";
14
+
url = "https://github.com/Mysticial/y-cruncher/releases/download/v${finalAttrs.version}/y-cruncher.v${finalAttrs.version}-static.tar.xz";
15
+
hash = "sha256-R57uTP45CXGi3+dcH0eyxR2ewjZKNxIyGHyh6mh7FUk=";
18
+
nativeBuildInputs = [
25
+
install -Dm755 y-cruncher -t $out/lib/y-cruncher/
26
+
install -Dm755 Binaries/*~* -t $out/lib/y-cruncher/Binaries/
27
+
install -Dm644 Binaries/Digits/*.txt -t $out/lib/y-cruncher/Binaries/Digits/
28
+
install -Dm644 Custom\ Formulas/*.cfg -t $out/lib/y-cruncher/Custom\ Formulas/
29
+
makeWrapper $out/lib/y-cruncher/y-cruncher $out/bin/y-cruncher
31
+
install -Dm644 "Command Lines.txt" -t $out/share/doc/y-cruncher/
32
+
install -Dm644 "Read Me.txt" -t $out/share/doc/y-cruncher/
33
+
install -Dm644 "Username.txt" -t $out/share/doc/y-cruncher/
34
+
install -Dm644 Binaries/*.txt -t $out/share/doc/y-cruncher/
35
+
install -Dm644 Custom\ Formulas/#README.txt -t $out/share/doc/y-cruncher/
41
+
updateScript = nix-update-script { };
45
+
description = "Compute Pi and other constants to billions of digits";
46
+
longDescription = ''
47
+
How fast can your computer compute Pi?
49
+
y-cruncher is a program that can compute Pi and other constants
50
+
to trillions of digits.
52
+
It is the first of its kind that is multi-threaded and scalable
53
+
to multi-core systems. Ever since its launch in 2009, it has
54
+
become a common benchmarking and stress-testing application for
55
+
overclockers and hardware enthusiasts.
57
+
y-cruncher has been used to set several world records for the
58
+
most digits of Pi ever computed.
60
+
homepage = "https://www.numberworld.org/y-cruncher/";
61
+
downloadPage = "https://www.numberworld.org/y-cruncher/#Download";
62
+
changelog = "https://www.numberworld.org/y-cruncher/version_history.html";
63
+
license = with lib.licenses; [
65
+
asl20 # Apache Commons + HTTP Client
66
+
bsd3 # Intel Cilk Run-Time Library
68
+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
69
+
maintainers = with lib.maintainers; [ normalcea ];
70
+
mainProgram = "y-cruncher";
71
+
platforms = [ "x86_64-linux" ];