about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFinn Behrens <me@kloenk.de>2024-03-03 12:59:41 +0100
committerGitHub <noreply@github.com>2024-03-03 12:59:41 +0100
commit5cb92fd712e859518cd17f2e230a013ded5dabb7 (patch)
tree69296be363138397c2d4b674814875b00657b613
parentb34af2d675b8ae33f2fa783e5786e79bd7f11902 (diff)
blahaj: enable mt by default and add static (#270608)
-rw-r--r--pkgs/tools/misc/blahaj/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/blahaj/default.nix b/pkgs/tools/misc/blahaj/default.nix
index c0e591515cdf5..a37d37bf41843 100644
--- a/pkgs/tools/misc/blahaj/default.nix
+++ b/pkgs/tools/misc/blahaj/default.nix
@@ -1,6 +1,10 @@
 { lib
+, stdenv
 , crystal
 , fetchFromGitHub
+  # https://crystal-lang.org/2019/09/06/parallelism-in-crystal/
+, multithreading ? true
+, static ? stdenv.hostPlatform.isStatic
 }:
 
 crystal.buildCrystalPackage rec {
@@ -14,6 +18,8 @@ crystal.buildCrystalPackage rec {
     hash = "sha256-CmMF9jDKUo+c8dYc2UEHKdBDE4dgwExcRS5sSUsUJik=";
   };
 
+  buildTargets = [ "${if static then "static" else "build"}${if multithreading then "_mt" else ""}" ];
+
   meta = with lib; {
     description = "Gay sharks at your local terminal - lolcat-like CLI tool";
     homepage = "https://blahaj.queer.software";