+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanUpdate and xorg migration504a1b6

main
1.4 KiB61 linesraw
1{ stdenv, lib, fetchurl, makeDesktopItem, copyDesktopItems, glib, gtk3,
2libxkbcommon, libxcb, libx11, libGL, fontconfig, vulkan-loader, ... }:
3stdenv.mkDerivation rec {
4  pname = "rwing";
5  version = "alpha-2.3";
6
7  src = fetchurl {
8    inherit pname version;
9    url = "https://julia.blue/rwing-linux-a2.3";
10    hash = "sha256-6BuQQItReOa2xnoMV7xR2yYCdWNrkqNRic/s+VkQf94=";
11  };
12  icon = fetchurl {
13    url = "https://pbs.twimg.com/profile_images/1848475281662828544/4BUEX-m7.png";
14    hash = "sha256-DDnhZGcCIUWcwTeRuSdS3Il6XdQh0XxSQ9TqdvjgPck=";
15  };
16
17  phases = [ "installPhase" ];
18  nativeBuildInputs = [ copyDesktopItems ];
19  buildInputs = [
20    glib
21    gtk3
22    libxkbcommon
23    libxcb
24    libx11
25    fontconfig.lib # TODO: debug not showing japanese characters
26    vulkan-loader
27    libGL
28    stdenv.cc.cc.lib
29  ];
30  libPath = lib.makeLibraryPath buildInputs;
31
32  installPhase = ''
33    runHook preInstall
34
35    mkdir -p $out/bin
36    bin=$out/bin/$pname
37    cp $src $bin
38    chmod +wx $bin
39    patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
40      --set-rpath ${libPath} $bin
41
42    runHook postInstall
43  '';
44
45  desktopItems = [
46    (makeDesktopItem {
47      name = pname;
48      desktopName = pname;
49      exec = pname;
50      icon = icon;
51    })
52  ];
53
54  meta = {
55    description = "Melee vod review tool";
56    homepage = "https://melee.cool/rwing";
57    license = lib.licenses.unfree;
58    platforms = [ "x86_64-linux" ];
59  };
60}
61