add icon / desktop entry and readme
61
flake.nix
@ -14,31 +14,46 @@
|
|||||||
let pkgs = nixpkgsFor.${system};
|
let pkgs = nixpkgsFor.${system};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
xintray = pkgs.buildGo120Module {
|
xintray = with pkgs;
|
||||||
pname = "xintray";
|
buildGo120Module rec {
|
||||||
version = "v0.1.13";
|
pname = "xintray";
|
||||||
src = ./.;
|
version = "v0.1.13";
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
vendorHash =
|
vendorHash =
|
||||||
"sha256-mp9e0Ed2bvyyqbQgnmWhS1Tb341iW8bJdlxNcjTG4Vo=";
|
"sha256-mp9e0Ed2bvyyqbQgnmWhS1Tb341iW8bJdlxNcjTG4Vo=";
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
nativeBuildInputs = [ pkg-config copyDesktopItems ];
|
||||||
buildInputs = with pkgs; [
|
buildInputs = [
|
||||||
git
|
git
|
||||||
glfw
|
glfw
|
||||||
libGL
|
libGL
|
||||||
libGLU
|
libGLU
|
||||||
openssh
|
openssh
|
||||||
pkg-config
|
pkg-config
|
||||||
xorg.libXcursor
|
xorg.libXcursor
|
||||||
xorg.libXi
|
xorg.libXi
|
||||||
xorg.libXinerama
|
xorg.libXinerama
|
||||||
xorg.libXrandr
|
xorg.libXrandr
|
||||||
xorg.libXxf86vm
|
xorg.libXxf86vm
|
||||||
xorg.xinput
|
xorg.xinput
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "Xin Tray";
|
||||||
|
exec = pname;
|
||||||
|
icon = pname;
|
||||||
|
desktopName = pname;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/
|
||||||
|
cp -r icons $out/share/
|
||||||
|
'';
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.xintray);
|
defaultPackage = forAllSystems (system: self.packages.${system}.xintray);
|
||||||
|
BIN
icons/hicolor/1024x1024/apps/xintray.png
Normal file
After Width: | Height: | Size: 371 KiB |
BIN
icons/hicolor/128x128/apps/xintray.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
icons/hicolor/16x16/apps/xintray.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/hicolor/24x24/apps/xintray.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/hicolor/256x256/apps/xintray.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
icons/hicolor/32x32/apps/xintray.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
icons/hicolor/48x48/apps/xintray.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
icons/hicolor/512x512/apps/xintray.png
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
icons/hicolor/64x64/apps/xintray.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
xintray-logo.png
Normal file
After Width: | Height: | Size: 359 KiB |