-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
54 lines (45 loc) · 846 Bytes
/
default.nix
File metadata and controls
54 lines (45 loc) · 846 Bytes
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
54
{
lib,
rustPlatform,
pkg-config,
openssl,
systemd,
zlib,
stdenv,
makeWrapper,
}:
rustPlatform.buildRustPackage rec {
pname = "rex";
version = "1.0.0";
src = ./.;
cargoHash = "sha256-sFE4mnERzFv2DnsjLTJv64pfxaRNefz8b1njI1pAFow=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
systemd
zlib
stdenv.cc.cc.lib
];
postInstall = ''
wrapProgram $out/bin/rex \
--set LD_LIBRARY_PATH "${
lib.makeLibraryPath [
zlib
stdenv.cc.cc.lib
]
}"
'';
meta = with lib; {
description = "Rex, the rust experiment manager";
homepage = "https://github.com/yourusername/rex";
license = licenses.gpl3;
maintainers = with maintainers; [
Jamin
Martin
];
platforms = platforms.linux;
};
}