lol

dislocker: add darwin build

+17 -2
+17 -2
pkgs/tools/filesystems/dislocker/default.nix
··· 1 { lib, stdenv 2 , fetchFromGitHub 3 , cmake 4 , mbedtls 5 , fuse 6 }: ··· 17 sha256 = "1ak68s1v5dwh8y2dy5zjybmrh0pnqralmyqzis67y21m87g47h2k"; 18 }; 19 20 - nativeBuildInputs = [ cmake ]; 21 buildInputs = [ fuse mbedtls ]; 22 23 meta = with lib; { ··· 25 homepage = "https://github.com/aorimn/dislocker"; 26 license = licenses.gpl2; 27 maintainers = with maintainers; [ elitak ]; 28 - platforms = platforms.linux; 29 }; 30 }
··· 1 { lib, stdenv 2 , fetchFromGitHub 3 + , fetchpatch 4 , cmake 5 + , pkg-config 6 , mbedtls 7 , fuse 8 }: ··· 19 sha256 = "1ak68s1v5dwh8y2dy5zjybmrh0pnqralmyqzis67y21m87g47h2k"; 20 }; 21 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 ]; 36 buildInputs = [ fuse mbedtls ]; 37 38 meta = with lib; { ··· 40 homepage = "https://github.com/aorimn/dislocker"; 41 license = licenses.gpl2; 42 maintainers = with maintainers; [ elitak ]; 43 + platforms = platforms.unix; 44 }; 45 }