dotfiles/pkgs/default.nix

123 lines
4.7 KiB
Nix
Raw Permalink Normal View History

2023-04-11 00:58:02 +07:00
{ pkgs
, lib
2023-12-18 08:48:49 +07:00
, inputs
, pkgs' ? pkgs
, isOverlay ? true
2023-12-18 08:48:49 +07:00
, ...
}:
2023-04-11 00:58:02 +07:00
let
inherit (pkgs') callPackage;
sources = import ./_sources/generated.nix {
2023-04-11 00:58:02 +07:00
inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools;
};
2023-12-18 08:48:49 +07:00
nur = import inputs.nur {
inherit pkgs;
nurpkgs = pkgs;
};
2023-04-11 00:58:02 +07:00
in
2023-06-14 17:26:54 +07:00
{
2023-12-18 08:48:49 +07:00
inherit (inputs.nix-gaming.packages.${pkgs.system}) faf-client osu-lazer-bin;
2024-07-03 19:43:27 +07:00
inherit (inputs.osu-wine.packages.${pkgs.system}) osu-wine;
2024-05-17 19:38:57 +07:00
matrix-appservice-discord = pkgs.callPackage ./matrix-appservice-discord { inherit (pkgs) matrix-appservice-discord; };
2024-08-06 04:56:55 +07:00
krita = pkgs.callPackage ./krita { inherit (pkgs) krita; };
2024-07-02 00:05:00 +07:00
openssh = pkgs.openssh.overrideAttrs (old: rec {
version = "9.8p1";
src = pkgs.fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
hash = "sha256-3YvQAqN5tdSZ37BQ3R+pr4Ap6ARh9LtsUjxJlz9aOfM=";
};
});
2024-08-13 10:42:32 +07:00
inherit (inputs.unbound-rust-mod.packages.${pkgs.system}) unbound-mod;
unbound-full = pkgs.unbound-full.overrideAttrs (old: {
configureFlags = old.configureFlags ++ [ "--with-dynlibmodule" ];
});
2023-12-19 11:12:34 +07:00
buffyboard = pkgs.callPackage ./buffyboard { };
clang-tools_latest = pkgs.clang-tools_16;
clang_latest = pkgs.clang_16;
/*ghidra = pkgs.ghidra.overrideAttrs (old: {
2023-04-11 00:58:02 +07:00
patches = old.patches ++ [ ./ghidra-stdcall.patch ];
});*/
2023-10-19 02:02:47 +07:00
gimp = callPackage ./gimp { inherit (pkgs) gimp; };
home-daemon = callPackage ./home-daemon { };
2023-04-11 00:58:02 +07:00
# pin version
2024-08-06 04:56:55 +07:00
looking-glass-client = pkgs.looking-glass-client.overrideAttrs (old: rec {
2023-04-11 00:58:02 +07:00
version = "B6";
2024-08-06 04:56:55 +07:00
postUnpack = ''
echo ${src.rev} > source/VERSION
export sourceRoot="source/client"
'';
2023-04-11 00:58:02 +07:00
src = pkgs.fetchFromGitHub {
owner = "gnif";
repo = "LookingGlass";
rev = "B6";
sha256 = "sha256-6vYbNmNJBCoU23nVculac24tHqH7F4AZVftIjL93WJU=";
fetchSubmodules = true;
};
2024-05-17 19:38:57 +07:00
patches = [ ];
2023-04-11 00:58:02 +07:00
});
2024-08-06 04:56:55 +07:00
kvmfrOverlay = kvmfr: (kvmfr.override { inherit (pkgs') looking-glass-client; }).overrideAttrs (old: {
2024-05-17 19:38:57 +07:00
patches = [ ./looking-glass.patch ];
});
2023-12-24 14:27:43 +07:00
mobile-config-firefox = callPackage ./mobile-config-firefox { };
ping-exporter = callPackage ./ping-exporter { };
2023-04-11 00:58:02 +07:00
proton-ge = pkgs.stdenvNoCC.mkDerivation {
inherit (sources.proton-ge) pname version src;
installPhase = ''
mkdir -p $out
tar -C $out --strip=1 -x -f $src
'';
};
2023-04-10 19:21:20 +07:00
rofi-steam-game-list = callPackage ./rofi-steam-game-list { };
scanservjs = callPackage ./scanservjs { };
searxng = pkgs'.python3.pkgs.toPythonModule (pkgs.searxng.overrideAttrs (old: {
inherit (sources.searxng) src;
version = "unstable-" + sources.searxng.date;
2023-11-21 04:46:52 +07:00
postInstall = builtins.replaceStrings [ "/botdetection" ] [ "" ] old.postInstall;
}));
2023-12-24 14:27:43 +07:00
schlock = callPackage ./schlock { };
2023-04-10 19:21:20 +07:00
techmino = callPackage ./techmino { };
2023-04-11 00:58:02 +07:00
firefoxAddons = lib.recurseIntoAttrs (callPackage ./firefox-addons { inherit nur sources; });
mpvScripts = lib.optionalAttrs isOverlay pkgs.mpvScripts // callPackage ./mpv-scripts { };
qemu_7 = callPackage ./qemu/7.nix {
2023-06-24 07:12:11 +07:00
stdenv = pkgs'.ccacheStdenv;
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices Cocoa Hypervisor vmnet;
inherit (pkgs.darwin.stubs) rez setfile;
inherit (pkgs.darwin) sigtool;
};
qemu_7_kvm = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; });
qemu_7_full = lib.lowPrio (pkgs'.qemu_7.override { smbdSupport = true; cephSupport = true; glusterfsSupport = true; });
qemu_7_xen = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; xenSupport = true; xen = pkgs.xen-slim; });
qemu_7_xen-light = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; xenSupport = true; xen = pkgs.xen-light; });
qemu_7_xen_4_15 = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; xenSupport = true; xen = pkgs.xen_4_15-slim; });
qemu_7_xen_4_15-light = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; xenSupport = true; xen = pkgs.xen_4_15-light; });
qemu_7_test = lib.lowPrio (pkgs'.qemu_7.override { hostCpuOnly = true; nixosTestRunner = true; });
# TODO: when https://gitlab.com/virtio-fs/virtiofsd/-/issues/96 is fixed remove this
virtiofsd = callPackage ./qemu/virtiofsd.nix {
qemu = pkgs'.qemu_7;
2023-10-19 02:02:47 +07:00
};
qemu_7_ccache = pkgs'.qemu_7.override {
stdenv = pkgs'.ccacheStdenv;
};
virtiofsd_ccache = pkgs'.virtiofsd.override {
qemu = pkgs'.qemu_7_ccache;
2023-06-24 07:12:11 +07:00
stdenv = pkgs'.ccacheStdenv;
};
2024-05-17 19:38:57 +07:00
ccachePkgs = import ./ccache.nix { inherit pkgs pkgs' lib sources; };
# hardware stuff
hw.bpi-r3 = import ../system/hardware/bpi-r3/pkgs.nix { inherit pkgs pkgs' lib sources; };
hw.oneplus-enchilada = import ../system/hardware/oneplus-enchilada/pkgs.nix { inherit inputs pkgs pkgs' lib sources; };
hw.kobo-clara = import ../system/hardware/kobo-clara/pkgs.nix { inherit pkgs pkgs' lib sources; };
# wlroots = throw "a";
# sway-unwrapped = throw "a";
2023-09-13 17:20:18 +07:00
}