Skyler Grey | b562da3 | 2022-09-01 23:36:28 +0100 | [diff] [blame] | 1 | { |
| 2 | rustPlatform, |
| 3 | fetchFromGitHub, |
| 4 | cmake, |
| 5 | pkg-config, |
| 6 | freetype, |
| 7 | fontconfig, |
| 8 | expat, |
| 9 | wayland, |
Skyler Grey | 1010db9 | 2022-09-05 03:21:48 +0100 | [diff] [blame] | 10 | system, |
Skyler Grey | b562da3 | 2022-09-01 23:36:28 +0100 | [diff] [blame] | 11 | }: |
| 12 | rustPlatform.buildRustPackage rec { |
| 13 | pname = "waycorner"; |
| 14 | version = builtins.substring 0 7 src.rev; |
| 15 | |
| 16 | src = fetchFromGitHub { |
| 17 | owner = "Minion3665"; |
| 18 | repo = "waycorner"; |
| 19 | rev = "4a42d986cffa66c535082b3f8fb1c7e7bf278272"; |
| 20 | sha256 = "sha256-OjQPYWtR3a9HZ6h1yXutHlMAfK0G2aRCdtSg9LZh1I0="; |
| 21 | }; |
| 22 | |
| 23 | cargoLock.lockFile = "${src}/Cargo.lock"; |
| 24 | |
| 25 | nativeBuildInputs = [ |
| 26 | cmake |
| 27 | pkg-config |
| 28 | ]; |
Skyler Grey | 1010db9 | 2022-09-05 03:21:48 +0100 | [diff] [blame] | 29 | |
Skyler Grey | b562da3 | 2022-09-01 23:36:28 +0100 | [diff] [blame] | 30 | buildInputs = [ |
| 31 | freetype |
| 32 | fontconfig |
| 33 | expat |
| 34 | wayland |
| 35 | ]; |
| 36 | |
| 37 | postFixup = '' |
| 38 | patchelf --add-needed ${wayland}/lib/libwayland-client.so $out/bin/waycorner |
| 39 | ''; |
| 40 | } |