format all files
This commit is contained in:
parent
f940a235f0
commit
a47826b7c2
101 changed files with 1073 additions and 1034 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{pkgs, ...}:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "bun";
|
||||
version = "1.3.10";
|
||||
|
|
|
|||
|
|
@ -1,48 +1,46 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
{pkgs, ...}: let
|
||||
RELEASE_VERSION = "20260208";
|
||||
PACKAGE_VERSION = "0.1.5";
|
||||
in
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "cage-xtmapper";
|
||||
version = PACKAGE_VERSION;
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "cage-xtmapper";
|
||||
version = PACKAGE_VERSION;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/Xtr126/cage-xtmapper/releases/download/v${RELEASE_VERSION}/cage-xtmapper-v${PACKAGE_VERSION}.tar";
|
||||
hash = "sha256-ZmdltOQInGbCBpf/e8D2sB9Rjt4wqd8wwuSFvryHfFA=";
|
||||
};
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/Xtr126/cage-xtmapper/releases/download/v${RELEASE_VERSION}/cage-xtmapper-v${PACKAGE_VERSION}.tar";
|
||||
hash = "sha256-ZmdltOQInGbCBpf/e8D2sB9Rjt4wqd8wwuSFvryHfFA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
|
||||
nativeBuildInputs = [pkgs.autoPatchelfHook];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
pixman
|
||||
libdrm
|
||||
libGL
|
||||
mesa
|
||||
vulkan-loader
|
||||
udev
|
||||
seatd
|
||||
libxcb-render-util
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
pixman
|
||||
libdrm
|
||||
libGL
|
||||
mesa
|
||||
vulkan-loader
|
||||
udev
|
||||
seatd
|
||||
libxcb-render-util
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
tar xvf $src
|
||||
cp usr/local/bin/cage_xtmapper $out/bin/
|
||||
cp usr/local/bin/cage_xtmapper.sh $out/bin/
|
||||
chmod +x $out/bin/cage_xtmapper
|
||||
chmod +x $out/bin/cage_xtmapper.sh
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "cage-xtmapper input mapping tool";
|
||||
homepage = "https://github.com/Xtr126/cage-xtmapper";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
tar xvf $src
|
||||
cp usr/local/bin/cage_xtmapper $out/bin/
|
||||
cp usr/local/bin/cage_xtmapper.sh $out/bin/
|
||||
chmod +x $out/bin/cage_xtmapper
|
||||
chmod +x $out/bin/cage_xtmapper.sh
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "cage-xtmapper input mapping tool";
|
||||
homepage = "https://github.com/Xtr126/cage-xtmapper";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,48 +1,46 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
{pkgs, ...}: let
|
||||
RELEASE_VERSION = "20260208";
|
||||
PACKAGE_VERSION = "0.2.0";
|
||||
in
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "cage-xtmapper";
|
||||
version = PACKAGE_VERSION;
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "cage-xtmapper";
|
||||
version = PACKAGE_VERSION;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/Xtr126/cage-xtmapper/releases/download/v${RELEASE_VERSION}/cage-xtmapper-v${PACKAGE_VERSION}.tar";
|
||||
hash = "sha256-F1C3KnTzTO1vEouixqO1xnsGmufRyAk+BiRlypNq4kQ=";
|
||||
};
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/Xtr126/cage-xtmapper/releases/download/v${RELEASE_VERSION}/cage-xtmapper-v${PACKAGE_VERSION}.tar";
|
||||
hash = "sha256-F1C3KnTzTO1vEouixqO1xnsGmufRyAk+BiRlypNq4kQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
|
||||
nativeBuildInputs = [pkgs.autoPatchelfHook];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
pixman
|
||||
libdrm
|
||||
libGL
|
||||
mesa
|
||||
vulkan-loader
|
||||
udev
|
||||
seatd
|
||||
libxcb-render-util
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
pixman
|
||||
libdrm
|
||||
libGL
|
||||
mesa
|
||||
vulkan-loader
|
||||
udev
|
||||
seatd
|
||||
libxcb-render-util
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
tar xvf $src
|
||||
cp usr/local/bin/cage_xtmapper $out/bin/
|
||||
cp usr/local/bin/cage_xtmapper.sh $out/bin/
|
||||
chmod +x $out/bin/cage_xtmapper
|
||||
chmod +x $out/bin/cage_xtmapper.sh
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "cage-xtmapper input mapping tool";
|
||||
homepage = "https://github.com/Xtr126/cage-xtmapper";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
tar xvf $src
|
||||
cp usr/local/bin/cage_xtmapper $out/bin/
|
||||
cp usr/local/bin/cage_xtmapper.sh $out/bin/
|
||||
chmod +x $out/bin/cage_xtmapper
|
||||
chmod +x $out/bin/cage_xtmapper.sh
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "cage-xtmapper input mapping tool";
|
||||
homepage = "https://github.com/Xtr126/cage-xtmapper";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{pkgs, ...}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "catppuccin-obs";
|
||||
version = "main";
|
||||
|
|
@ -13,4 +13,3 @@ pkgs.stdenv.mkDerivation {
|
|||
cp -r $src/themes/* $out/
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,31 +1,32 @@
|
|||
{
|
||||
cursors ? "aemeath",
|
||||
size ? 48,
|
||||
}:
|
||||
let
|
||||
_b = name: url: hash: { inherit name url hash; };
|
||||
_q = name: hash: { ${name} = _b name "https://static.asakiyuki.com/cursors/linux/${name}.tar.gz" hash; };
|
||||
}: let
|
||||
_b = name: url: hash: {inherit name url hash;};
|
||||
_q = name: hash: {${name} = _b name "https://static.asakiyuki.com/cursors/linux/${name}.tar.gz" hash;};
|
||||
|
||||
cursors-data = (
|
||||
_q "castorice" "sha256-nqAC+Itr+TXLGG8zYDBoBve+MeRckds5BM23DrsCTMM="
|
||||
// _q "aemeath" "sha256-0eEsUks5MwW4g5Xau24SgchX+LD9Ra3azAH0KL9JzQw="
|
||||
// _q "elysia" "sha256-mjDHklWrX5Pp/vejRQiMk0VA6afY04HXGyGD0PcopdI="
|
||||
// _q "cartethyia" "sha256-jYIDoX+rfUjw6LXrqE4y8j5IL0vByrrRkgRuz08Zy6U="
|
||||
).${cursors};
|
||||
cursors-data =
|
||||
(
|
||||
_q "castorice" "sha256-nqAC+Itr+TXLGG8zYDBoBve+MeRckds5BM23DrsCTMM="
|
||||
// _q "aemeath" "sha256-0eEsUks5MwW4g5Xau24SgchX+LD9Ra3azAH0KL9JzQw="
|
||||
// _q "elysia" "sha256-mjDHklWrX5Pp/vejRQiMk0VA6afY04HXGyGD0PcopdI="
|
||||
// _q "cartethyia" "sha256-jYIDoX+rfUjw6LXrqE4y8j5IL0vByrrRkgRuz08Zy6U="
|
||||
).${
|
||||
cursors
|
||||
};
|
||||
in
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
name = cursors-data.name;
|
||||
size = size;
|
||||
package = pkgs.runCommand "moveUp" { } ''
|
||||
mkdir -p $out/share/icons
|
||||
ln -s ${
|
||||
pkgs.fetchzip {
|
||||
url = cursors-data.url;
|
||||
hash = cursors-data.hash;
|
||||
}
|
||||
} $out/share/icons/${cursors-data.name}
|
||||
'';
|
||||
}
|
||||
{pkgs, ...}: {
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
name = cursors-data.name;
|
||||
size = size;
|
||||
package = pkgs.runCommand "moveUp" {} ''
|
||||
mkdir -p $out/share/icons
|
||||
ln -s ${
|
||||
pkgs.fetchzip {
|
||||
url = cursors-data.url;
|
||||
hash = cursors-data.hash;
|
||||
}
|
||||
} $out/share/icons/${cursors-data.name}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
{ ... }@inputs:
|
||||
{
|
||||
bun = import ./bun.nix;
|
||||
cage-xtmapper = { version ? "0.2.0" }: import ./cage-xtmapper-${version}.nix;
|
||||
catppuccin-obs = import ./catppuccin-obs.nix;
|
||||
cursors = { name ? "aemeath", size ? 48 }: (import ./custom-cursors.nix { cursors = name; size = size; });
|
||||
}
|
||||
{...}: {
|
||||
bun = import ./bun.nix;
|
||||
cage-xtmapper = {version ? "0.2.0"}: import ./cage-xtmapper-${version}.nix;
|
||||
catppuccin-obs = import ./catppuccin-obs.nix;
|
||||
cursors = {
|
||||
name ? "aemeath",
|
||||
size ? 48,
|
||||
}: (import ./custom-cursors.nix {
|
||||
cursors = name;
|
||||
size = size;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue