-
Notifications
You must be signed in to change notification settings - Fork 1
/
thang.nix
50 lines (42 loc) · 893 Bytes
/
thang.nix
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
{
pkgs,
lib,
rustPlatform,
}:
let
buildInputs = with pkgs; [
openssl
libxkbcommon
fontconfig
libGL
wayland
];
car_thang = rustPlatform.buildRustPackage {
name = "car_thang";
version = "0.1.0";
src = [ ./. ];
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs; [
pkg-config
];
inherit buildInputs;
meta = {
description = "a clone of the Spotify Car Thing UI to bring it back to life!";
homepage = "https://github.com/BounceU/car_thang";
license = lib.licenses.mit;
maintainers = [ ];
};
};
wrapped = pkgs.writeShellScriptBin "car_thang" ''
export LD_LIBRARY_PATH="${lib.makeLibraryPath buildInputs}"
# export RUST_BACKTRACE="full"
exec ${car_thang}/bin/car_thang
'';
in
pkgs.symlinkJoin {
name = "car_thang";
paths = [
wrapped
car_thang
];
}