lol

dislocker: add darwin build

+17 -2
+17 -2
pkgs/tools/filesystems/dislocker/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchFromGitHub 3 + , fetchpatch 3 4 , cmake 5 + , pkg-config 4 6 , mbedtls 5 7 , fuse 6 8 }: ··· 17 19 sha256 = "1ak68s1v5dwh8y2dy5zjybmrh0pnqralmyqzis67y21m87g47h2k"; 18 20 }; 19 21 20 - nativeBuildInputs = [ cmake ]; 22 + patches = [ 23 + # This patch 24 + # 1. adds support for the latest FUSE on macOS 25 + # 2. uses pkg-config to find libfuse instead of searching in predetermined 26 + # paths 27 + # 28 + # https://github.com/Aorimn/dislocker/pull/246 29 + (fetchpatch { 30 + url = "https://github.com/Aorimn/dislocker/commit/7744f87c75fcfeeb414d0957771042b10fb64e62.diff"; 31 + sha256 = "0bpyccbbfjsidsrd2q9qylb95nvi8g3glb3jss7xmhywj86bhzr5"; 32 + }) 33 + ]; 34 + 35 + nativeBuildInputs = [ cmake pkg-config ]; 21 36 buildInputs = [ fuse mbedtls ]; 22 37 23 38 meta = with lib; { ··· 25 40 homepage = "https://github.com/aorimn/dislocker"; 26 41 license = licenses.gpl2; 27 42 maintainers = with maintainers; [ elitak ]; 28 - platforms = platforms.linux; 43 + platforms = platforms.unix; 29 44 }; 30 45 }