nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 pkg-config,
5 libX11,
6 libXcursor,
7 libXrandr,
8 libXinerama,
9 libXi,
10 libXext,
11 libXxf86vm,
12 libGL,
13 nixosTests,
14 buildGoModule,
15}:
16
17buildGoModule rec {
18 pname = "darktile";
19 version = "0.0.11";
20
21 src = fetchFromGitHub {
22 owner = "liamg";
23 repo = "darktile";
24 rev = "v${version}";
25 hash = "sha256-M3vySAyYwqscR9n0GGXp1ttO/mhdSCponZNYJRBBI18=";
26 };
27
28 vendorHash = null;
29
30 nativeBuildInputs = [ pkg-config ];
31
32 buildInputs = [
33 libX11
34 libXcursor
35 libXrandr
36 libXinerama
37 libXi
38 libXext
39 libXxf86vm
40 libGL
41 ];
42
43 passthru.tests.test = nixosTests.terminal-emulators.darktile;
44
45 meta = {
46 description = "GPU rendered terminal emulator designed for tiling window managers";
47 homepage = "https://github.com/liamg/darktile";
48 downloadPage = "https://github.com/liamg/darktile/releases";
49 changelog = "https://github.com/liamg/darktile/releases/tag/v${version}";
50 license = lib.licenses.mit;
51 platforms = lib.platforms.linux;
52 badPlatforms = [ "aarch64-linux" ];
53 maintainers = with lib.maintainers; [ mikaelfangel ];
54 mainProgram = "darktile";
55 };
56}