blob: da5137154bb2015af4c641f3d7d9cc166bb47e88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, rustPlatform
, fetchCrate
, cmake
, pkg-config
, makeWrapper
, openssl
, stdenv
, fontconfig
, libGL
, xorg
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-ui";
version = "0.3.2";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-IL7BxiJg6eTuFM0pJ3qLxYCVofE/RjmgQjvOW96QF9A=";
};
cargoSha256 = "sha256-16mgp7GsjbizzCWN3MDpl6ps9CK1zdIpLiyNiKYjDI4=";
nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals stdenv.isLinux [
makeWrapper
];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [
fontconfig
libGL
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libxcb
];
postInstall = lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/cargo-ui \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]}
'';
meta = with lib; {
description = "A GUI for Cargo";
homepage = "https://github.com/slint-ui/cargo-ui";
changelog = "https://github.com/slint-ui/cargo-ui/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit asl20 gpl3Only ];
maintainers = with maintainers; [ figsoda ];
# figsoda: I can't figure how to make it build on darwin
broken = stdenv.isDarwin;
};
}
|