mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
migrate packages to home manager
This commit is contained in:
17
packages/firefox-gnome-theme-installer.nix
Normal file
17
packages/firefox-gnome-theme-installer.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkgs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "firefox-gnome-theme";
|
||||
version = "116.0.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "rafaelmardojai";
|
||||
repo = "firefox-gnome-theme";
|
||||
sparseCheckout = ["scripts"];
|
||||
rev = "v116";
|
||||
sha256 = "0IS5na2WRSNWNygHhmZOcXhdrx2aFhCDQY8XVVeHf8Q=";
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp scripts/install-by-curl.sh $out/bin/install-firefox-gnome-theme
|
||||
'';
|
||||
}
|
||||
44
packages/hid-fanatecff-tools.nix
Normal file
44
packages/hid-fanatecff-tools.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkgs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hid-fanatecff-tools";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gotzl";
|
||||
repo = "hid-fanatecff-tools";
|
||||
rev = "7f9ab82a5e46a60811a9917765ec5d3cdbf0ecbd";
|
||||
hash = "sha256-urgAMa3xPe6iYLwXavJ5rtjsbtueUG64XPsAlB1x/Y8=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace "tools/fanatec_led_server.py" --replace "#!/usr/bin/python3" "#!/${pkgs.python312}"
|
||||
rm Makefile
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/${pname}
|
||||
cp . $out/share/${pname}
|
||||
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/share/${pname}/tools/fanatec_led_server $out/bin/${pname}
|
||||
|
||||
cp -v dbus/org.fanatec.conf $out/etc/dbus-1/system.d/
|
||||
cp -v dbus/org.fanatec.service $out/share/dbus-1/system-services/
|
||||
|
||||
ln -s dbus/fanatec-input.py $out/bin/fanatec-input
|
||||
ln -s dbus/fanatec-input.systemd.service $out/lib/systemd/system/fanatec-input.service
|
||||
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
Helper to access sysfs functions from the hid-fanatec driver
|
||||
and aims to connect games with the (extended) features of
|
||||
the CSL Elite Wheel. It is not needed for force-feedback to work.
|
||||
'';
|
||||
homepage = "https://github.com/gotzl/hid-fanatecff-tools";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{ pkgs, version, build }: pkgs.jetbrains.idea-ultimate.overrideAttrs(prev: {
|
||||
version = "${version}";
|
||||
build_number = "${build}";
|
||||
{ pkgs }: pkgs.jetbrains.idea-ultimate.overrideAttrs(prev: {
|
||||
version = "2023.2.4";
|
||||
src = builtins.fetchurl {
|
||||
url = "https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz";
|
||||
url = "https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz";
|
||||
sha256 = "26fea1a8597e8124dcc24e8ed1dd6f5268e0cd1ba736bbe0e22df3f635ad280b";
|
||||
};
|
||||
});
|
||||
})
|
||||
|
||||
5
packages/threema-desktop.nix
Normal file
5
packages/threema-desktop.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ pkgs }: pkgs.threema-desktop.overrideAttrs(prev: {
|
||||
postFixup = prev.postFixup + ''
|
||||
echo "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" >> $out/bin/threema
|
||||
'';
|
||||
}))
|
||||
Reference in New Issue
Block a user