treewide: prune packages and various unused fluff
- removed shells, broken for like 2 years now - removed discord mods and spicetify - removed inputs for services - removed various unused inputs - removed various unused packages
This commit is contained in:
parent
bebaa0c14f
commit
27d1c31e35
19 changed files with 5 additions and 902 deletions
|
|
@ -2,18 +2,11 @@
|
|||
callPackage,
|
||||
linuxLavaNixpkgs,
|
||||
inputs
|
||||
}: rec {
|
||||
discord-tokyonight = callPackage ./discord-tokyonight { inherit inputs; };
|
||||
discover-overlay = callPackage ./discover { inherit inputs; };
|
||||
epson-201112j = callPackage ./epson-201112j { };
|
||||
}: {
|
||||
linux-lava = linuxLavaNixpkgs.callPackage ./linux-lava { inherit inputs; };
|
||||
nvim-treesitter-nightly = callPackage ./nvim-treesitter-nightly { inherit inputs; };
|
||||
packwiz = callPackage ./packwiz { inherit inputs; };
|
||||
psensor = callPackage ./psensor { };
|
||||
psensor = callPackage ./psensor { };
|
||||
spotify-adblock = callPackage ./spotify-adblock { inherit inputs; };
|
||||
tetrio-desktop = callPackage ./tetrio/base.nix { };
|
||||
tetrio-desktop-plus = callPackage ./tetrio/plus.nix { inherit tetrio-desktop; };
|
||||
tree-sitter-glimmer = callPackage ./tree-sitter-glimmer { inherit inputs; };
|
||||
tree-sitter-jsonc = callPackage ./tree-sitter-jsonc { inherit inputs; };
|
||||
wine-discord-ipc-bridge = callPackage ./wine-discord-ipc-bridge { inherit inputs; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
stdenvNoCC
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "discord-tokyonight";
|
||||
version = "1.0.0";
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
cp -r ${inputs.discord-tokyonight} $out
|
||||
chmod u+w $out
|
||||
cp ${./powercord_manifest.json} $out/powercord_manifest.json
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"version": "1.0",
|
||||
"name": "Tokyo Night Colours",
|
||||
"author": "DanisDGK",
|
||||
"license": "MIT",
|
||||
"theme": "colors/tokyonight_night.css",
|
||||
"description": "Tokyonight colourscheme"
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
{ inputs
|
||||
, python3Packages
|
||||
, gtk3
|
||||
, gobject-introspection
|
||||
, wrapGAppsHook
|
||||
, ...
|
||||
}:
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "discover-overlay";
|
||||
version = "1.0";
|
||||
src = inputs.discover;
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook
|
||||
];
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
gtk3
|
||||
gobject-introspection
|
||||
pygobject3
|
||||
websocket-client
|
||||
pyxdg
|
||||
requests
|
||||
python-pidfile
|
||||
pillow
|
||||
];
|
||||
}
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, rpmextract, autoreconfHook, file, libjpeg, cups }:
|
||||
|
||||
let
|
||||
version = "1.0.0";
|
||||
filterVersion = "1.0.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "epson-201112j";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
# NOTE: Don't forget to update the webarchive link too!
|
||||
urls = [
|
||||
"http://download.ebz.epson.net/dsc/f/01/00/01/68/36/cbf6cf36263b5a6c4f370266f2479556cd665d7c/epson-inkjet-printer-201112j-${version}-1lsb3.2.src.rpm"
|
||||
];
|
||||
|
||||
sha256 = "sha256-+n5QQDMgEjKYFlH62bVAZRtr0GjyG8yDahPquOjIZWA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ rpmextract autoreconfHook file ];
|
||||
|
||||
buildInputs = [ libjpeg cups ];
|
||||
|
||||
unpackPhase = ''
|
||||
rpmextract $src
|
||||
tar -zxf epson-inkjet-printer-201112j-${version}.tar.gz
|
||||
tar -zxf epson-inkjet-printer-filter-${filterVersion}.tar.gz
|
||||
for ppd in epson-inkjet-printer-201112j-${version}/ppds/*; do
|
||||
substituteInPlace $ppd --replace "/opt/epson-inkjet-printer-201112j" "$out"
|
||||
substituteInPlace $ppd --replace "/cups/lib" "/lib/cups"
|
||||
done
|
||||
cd epson-inkjet-printer-filter-${filterVersion}
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
chmod +x configure
|
||||
export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
cd ../epson-inkjet-printer-201112j-${version}
|
||||
cp -a lib64 resource watermark $out
|
||||
mkdir -p $out/share/cups/model/epson-inkjet-printer-201112j
|
||||
cp -a ppds $out/share/cups/model/epson-inkjet-printer-201112j/
|
||||
cp -a Manual.txt $out/doc/
|
||||
cp -a README $out/doc/README.driver
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.openprinting.org/driver/epson-201112j";
|
||||
description = "Epson printer driver (BX535WD, BX630FW, BX635FWD, ME940FW, NX530, NX635, NX635, SX535WD, WorkForce 545, WorkForce 645";
|
||||
longDescription = ''
|
||||
This software is a filter program used with the Common UNIX Printing
|
||||
System (CUPS) under Linux. It supplies high quality printing with
|
||||
Seiko Epson Color Ink Jet Printers.
|
||||
List of printers supported by this package:
|
||||
Epson BX535WD Series
|
||||
Epson BX630FW Series
|
||||
Epson BX635FWD Series
|
||||
Epson ME940FW Series
|
||||
Epson NX530 Series
|
||||
Epson SX535WD Series
|
||||
Epson WorkForce 545 Series
|
||||
Epson WorkForce 645 Series
|
||||
To use the driver adjust your configuration.nix file:
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.epson-201112j ];
|
||||
};
|
||||
'';
|
||||
license = with licenses; [ lgpl21 epson ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{ inputs
|
||||
, buildGoModule
|
||||
}:
|
||||
buildGoModule {
|
||||
pname = "packwiz";
|
||||
version = inputs.packwiz.shortRev;
|
||||
src = inputs.packwiz;
|
||||
vendorSha256 = "1f2xh8czq8fh823dyp54rdv5mmb9gf62f5fimdah4wmghqw4wbzy";
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
# Copied from https://github.com/NixOS/nixpkgs/pull/146940
|
||||
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, alsa-lib
|
||||
, cups
|
||||
, dpkg
|
||||
, gtk3
|
||||
, libpulseaudio
|
||||
, libX11
|
||||
, libXScrnSaver
|
||||
, libXtst
|
||||
, mesa
|
||||
, nss
|
||||
, systemd
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tetrio-desktop";
|
||||
version = "8.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://web.archive.org/web/20211228025517if_/https://tetr.io/about/desktop/builds/TETR.IO%20Setup.deb";
|
||||
name = "${pname}.deb";
|
||||
sha256 = "1nlblfhrph4cw8rpic9icrs78mzrxyskl7ggyy2i8bk9i07i21xf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
cups
|
||||
libX11
|
||||
libXScrnSaver
|
||||
libXtst
|
||||
mesa
|
||||
nss
|
||||
gtk3
|
||||
];
|
||||
|
||||
libPath = lib.makeLibraryPath [
|
||||
libpulseaudio
|
||||
systemd
|
||||
];
|
||||
|
||||
unpackCmd = "dpkg -x $curSrc src";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp -r opt/ usr/share/ $out
|
||||
|
||||
mkdir $out/bin
|
||||
ln -s $out/opt/TETR.IO/tetrio-desktop $out/bin/
|
||||
|
||||
substituteInPlace $out/share/applications/tetrio-desktop.desktop \
|
||||
--replace "Exec=\"/opt/TETR.IO/tetrio-desktop\"" "Exec=\"$out/opt/TETR.IO/tetrio-desktop\""
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/opt/TETR.IO/tetrio-desktop \
|
||||
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/TETR.IO \
|
||||
''${gappsWrapperArgs[@]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://tetr.io";
|
||||
downloadPage = "https://tetr.io/about/desktop/";
|
||||
description = "TETR.IO desktop client";
|
||||
longDescription = ''
|
||||
TETR.IO is a modern yet familiar online stacker.
|
||||
Play against friends and foes all over the world, or claim a spot on the leaderboards - the stacker future is yours!
|
||||
'';
|
||||
platforms = [ "x86_64-linux" ];
|
||||
license = licenses.unfree;
|
||||
#maintainers = with maintainers; [ wackbyte ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
fetchzip,
|
||||
lib,
|
||||
symlinkJoin,
|
||||
stdenvNoCC,
|
||||
tetrio-desktop,
|
||||
unzip
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.23.7";
|
||||
|
||||
patchedAsar = stdenvNoCC.mkDerivation rec {
|
||||
pname = "tetrio-plus";
|
||||
version = "0.25.3";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://gitlab.com/UniQMG/tetrio-plus/uploads/684477053451cd0819e2c84e145966eb/tetrio-plus_0.25.3_app.asar.zip";
|
||||
sha256 = "sha256-GQgt4GZNeKx/uzmVsuKppW2zg8AAiGqsk2JYJIkqfVE=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install app.asar $out
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "TETR.IO customization toolkit";
|
||||
homepage = "https://gitlab.com/UniQMG/tetrio-plus";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ huantian ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
};
|
||||
in tetrio-desktop.overrideAttrs(old: {
|
||||
pname = "tetrio-desktop-plus";
|
||||
version = old.version + "+${version}";
|
||||
|
||||
postInstall = ''
|
||||
cp ${patchedAsar} $out/opt/TETR.IO/resources/app.asar
|
||||
'';
|
||||
})
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
callPackage,
|
||||
inputs
|
||||
}:
|
||||
callPackage (inputs.nixpkgs + "/pkgs/development/tools/parsing/tree-sitter/grammar.nix") {} {
|
||||
language = "glimmer";
|
||||
version = "1.0.0";
|
||||
src = inputs.tree-sitter-glimmer;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue