Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
81 lines (68 loc) 路 1.84 KB
/
Copy pathflake.nix
File metadata and controls
81 lines (68 loc) 路 1.84 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
description = "Hexecute";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
inputs:
let
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
hexecute = pkgs.buildGoModule {
pname = "hexecute";
version = "0.1.0";
src = ./.;
vendorHash = "sha256-CIlYhcX7F08Xwrr3/0tkgrfuP68UU0CeQ+HV63b6Ddg=";
nativeBuildInputs = with pkgs; [
pkg-config
makeWrapper
];
buildInputs = with pkgs; [
wayland
wayland-protocols
libxkbcommon
libGL
libGLU
mesa
xorg.libX11
];
postFixup = ''
wrapProgram $out/bin/hexecute \
--prefix __EGL_VENDOR_LIBRARY_DIRS : "/run/opengl-driver/share/glvnd/egl_vendor.d" \
--prefix __EGL_VENDOR_LIBRARY_DIRS : "${pkgs.mesa}/share/glvnd/egl_vendor.d" \
--prefix LIBGL_DRIVERS_PATH : "/run/opengl-driver/lib/dri" \
--prefix LIBGL_DRIVERS_PATH : "${pkgs.mesa}/lib/dri"
'';
meta = {
description = "Launch apps by casting spells! 馃獎";
homepage = "https://github.com/m31-galaxy/Hexecute";
license = pkgs.lib.licenses.gpl3;
platforms = pkgs.lib.platforms.linux;
};
};
in
{
packages.${system} = {
inherit hexecute;
default = hexecute;
};
devShells.${system}.default = pkgs.mkShell {
name = "hexecute";
packages = with pkgs; [
go
pkg-config
# Wayland libraries
wayland
wayland-protocols
wayland-scanner
libxkbcommon
# EGL and OpenGL
libGL
libGLU
mesa
# Build tools
gcc
];
};
};
}