binserve: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-09 21:37:38 -08:00
parent 6fc16edd8d
commit ff4de5d922
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }: { lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "binserve"; pname = "binserve";
@ -8,13 +8,9 @@ rustPlatform.buildRustPackage rec {
owner = "mufeedvh"; owner = "mufeedvh";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-Chm2xPB0BrLXSZslg9wnbDyHSJRQAvOtpH0Rw6w1q1s="; hash = "sha256-Chm2xPB0BrLXSZslg9wnbDyHSJRQAvOtpH0Rw6w1q1s=";
}; };
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreServices
];
cargoLock.lockFile = ./Cargo.lock; cargoLock.lockFile = ./Cargo.lock;
postPatch = '' postPatch = ''
cp ${./Cargo.lock} Cargo.lock cp ${./Cargo.lock} Cargo.lock

View File

@ -237,9 +237,7 @@ with pkgs;
beebeep = libsForQt5.callPackage ../applications/office/beebeep { }; beebeep = libsForQt5.callPackage ../applications/office/beebeep { };
binserve = callPackage ../servers/binserve { binserve = callPackage ../servers/binserve { };
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
bloodhound-py = with python3Packages; toPythonApplication bloodhound-py; bloodhound-py = with python3Packages; toPythonApplication bloodhound-py;