about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAleksana2024-05-09 11:20:26 +0800
committerGitHub2024-05-09 11:20:26 +0800
commit7633f6b2a41efd17ea1ca67c8cb6128602569985 (patch)
treea160499ec99d5bd7ddf16854d54b5067f138e9ed /pkgs
parentac34158a823c7596e0106c806d0b7df47885fa73 (diff)
parentfeb804804e5db722817f7f5bd63cda556094d8fe (diff)
Merge pull request #309875 from afh/fix-darwin-slumber
slumber: fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/sl/slumber/package.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/by-name/sl/slumber/package.nix b/pkgs/by-name/sl/slumber/package.nix
index 32fc52be0d9b..3a01367689d4 100644
--- a/pkgs/by-name/sl/slumber/package.nix
+++ b/pkgs/by-name/sl/slumber/package.nix
@@ -1,4 +1,10 @@
-{ lib, stdenv, fetchFromGitHub, rustPlatform }:
+{
+  lib,
+  stdenv,
+  fetchFromGitHub,
+  rustPlatform,
+  darwin,
+}:
 rustPlatform.buildRustPackage rec {
   pname = "slumber";
   version = "1.1.0";
@@ -14,12 +20,13 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-AK/+1tCdvNucIbxwyqOt/TbOaJPVDOKFEx5NqW2Yd4U=";
 
+  buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
+
   meta = with lib; {
     description = "Terminal-based HTTP/REST client";
     homepage = "https://slumber.lucaspickering.me";
     license = licenses.mit;
     mainProgram = "slumber";
     maintainers = with maintainers; [ javaes ];
-    broken = stdenv.isDarwin || stdenv.isAarch64;
   };
 }