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