2023-04-11 00:58:02 +07:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, nur
|
2023-05-25 04:39:57 +07:00
|
|
|
, nix-gaming
|
2023-06-11 21:48:35 +07:00
|
|
|
, pkgs' ? pkgs
|
2023-04-11 00:58:02 +07:00
|
|
|
, ... }:
|
|
|
|
let
|
|
|
|
inherit (pkgs) callPackage;
|
2023-05-25 06:24:57 +07:00
|
|
|
sources = import ./_sources/generated.nix {
|
2023-04-11 00:58:02 +07:00
|
|
|
inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools;
|
|
|
|
};
|
2023-08-14 03:50:27 +07:00
|
|
|
nixForNixPlugins = pkgs.nixVersions.nix_2_17;
|
2023-04-11 00:58:02 +07:00
|
|
|
in
|
|
|
|
|
2023-06-14 17:26:54 +07:00
|
|
|
{
|
2023-08-13 04:50:39 +07:00
|
|
|
linux-firmware = if pkgs.system == "x86_64-linux" then pkgs.stdenvNoCC.mkDerivation {
|
2023-08-13 02:48:09 +07:00
|
|
|
inherit (pkgs.linux-firmware) pname version src meta;
|
|
|
|
dontFixup = true;
|
|
|
|
passthru = { inherit (pkgs.linux-firmware) version; };
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
# revert microcode updates which break boot for me
|
|
|
|
patches = [ ./revert-amd-ucode-update.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
cp ${pkgs.fetchurl {
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd_fam17h.bin?id=b250b32ab1d044953af2dc5e790819a7703b7ee6";
|
|
|
|
hash = "sha256-HnKjEb2di7BiKB09JYUjIUuZNCVgXlwRSbjijnuYBcM=";
|
|
|
|
}} amd-ucode/microcode_amd_fam17h.bin
|
|
|
|
'';
|
2023-08-13 04:50:39 +07:00
|
|
|
} else pkgs.linux-firmware;
|
2023-07-12 03:26:50 +07:00
|
|
|
inherit (nix-gaming) faf-client osu-lazer-bin;
|
2023-08-04 08:30:16 +07:00
|
|
|
inherit nixForNixPlugins;
|
|
|
|
nix-plugins = pkgs.nix-plugins.overrideAttrs (old: {
|
2023-08-14 03:50:27 +07:00
|
|
|
version = "12.0.0";
|
|
|
|
patches = [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/shlevy/nix-plugins/pull/15/commits/f7534b96e70ca056ef793918733d1820af89a433.patch";
|
|
|
|
hash = "sha256-ePRAnZAobasF6jA3QC73p8zyzayXORuodhus96V+crs=";
|
|
|
|
})
|
|
|
|
];
|
2023-08-04 08:30:16 +07:00
|
|
|
});
|
|
|
|
nix = nixForNixPlugins;
|
|
|
|
nixVersions = pkgs.nixVersions.extend (self: super: {
|
|
|
|
stable = nixForNixPlugins;
|
|
|
|
unstable = nixForNixPlugins;
|
|
|
|
});
|
2023-08-14 03:50:27 +07:00
|
|
|
# Various patches to change Nix version of existing packages so they don't error out because of nix-plugins in nix.conf
|
2023-08-04 08:30:16 +07:00
|
|
|
harmonia = pkgs.harmonia.override { nix = nixForNixPlugins; };
|
|
|
|
nix-init = pkgs.nix-init.override { nix = nixForNixPlugins; };
|
|
|
|
nix-serve = pkgs.nix-serve.override { nix = nixForNixPlugins; };
|
|
|
|
nix-serve-ng = pkgs.nix-serve-ng.override { nix = nixForNixPlugins; };
|
2023-08-14 03:50:27 +07:00
|
|
|
hydra_unstable = (pkgs.hydra_unstable.override {
|
|
|
|
nix = nixForNixPlugins.overrideAttrs (old: {
|
|
|
|
# TODO: remove when https://github.com/NixOS/nix/issues/8796 is fixed or hydra code stops needing a fix
|
|
|
|
configureFlags = builtins.filter (x: x != "--enable-lto") (old.configureFlags or []);
|
|
|
|
});
|
2023-08-09 23:43:17 +07:00
|
|
|
}).overrideAttrs (old: {
|
2023-08-14 03:50:27 +07:00
|
|
|
patches = (old.patches or [ ]) ++ [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/NixOS/hydra/pull/1296/commits/b23431a657d8a9b2f478c95dd81034780751a262.patch";
|
|
|
|
hash = "sha256-ruTAIPUrPtfy8JkXYK2qigBrSa6KPXpJlORTNkUYrG0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
});
|
|
|
|
nurl = pkgs.nurl.override { nix = nixForNixPlugins; };
|
2023-08-04 08:30:16 +07:00
|
|
|
|
2023-06-11 18:02:38 +07:00
|
|
|
clang-tools_latest = pkgs.clang-tools_16;
|
|
|
|
clang_latest = pkgs.clang_16;
|
2023-05-10 16:42:56 +07:00
|
|
|
/*ghidra = pkgs.ghidra.overrideAttrs (old: {
|
2023-04-11 00:58:02 +07:00
|
|
|
patches = old.patches ++ [ ./ghidra-stdcall.patch ];
|
2023-05-10 16:42:56 +07:00
|
|
|
});*/
|
2023-08-04 08:30:16 +07:00
|
|
|
home-daemon = callPackage ./home-daemon { };
|
2023-04-11 00:58:02 +07:00
|
|
|
# pin version
|
|
|
|
looking-glass-client = pkgs.looking-glass-client.overrideAttrs (old: {
|
|
|
|
version = "B6";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "gnif";
|
|
|
|
repo = "LookingGlass";
|
|
|
|
rev = "B6";
|
|
|
|
sha256 = "sha256-6vYbNmNJBCoU23nVculac24tHqH7F4AZVftIjL93WJU=";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
});
|
2023-07-12 14:59:52 +07:00
|
|
|
kvmfrOverlay = kvmfr: kvmfr.overrideAttrs (old: {
|
2023-07-12 03:26:50 +07:00
|
|
|
inherit (pkgs'.looking-glass-client) version src;
|
|
|
|
});
|
2023-05-25 06:24:57 +07:00
|
|
|
pineapplebot = callPackage ./pineapplebot.nix { };
|
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 { };
|
2023-08-04 08:30:16 +07:00
|
|
|
searxng = pkgs'.python3.pkgs.toPythonModule (pkgs.searxng.overrideAttrs (old: {
|
2023-06-27 15:25:19 +07:00
|
|
|
inherit (sources.searxng) src;
|
|
|
|
version = "unstable-" + sources.searxng.date;
|
2023-08-14 03:50:27 +07:00
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
|
|
|
(pkgs'.python3.pkgs.callPackage ./chompjs.nix { })
|
|
|
|
];
|
2023-08-04 08:30:16 +07:00
|
|
|
}));
|
2023-05-30 10:02:36 +07:00
|
|
|
# system76-scheduler = callPackage ./system76-scheduler.nix { };
|
2023-04-10 19:21:20 +07:00
|
|
|
techmino = callPackage ./techmino { };
|
2023-04-11 00:58:02 +07:00
|
|
|
|
|
|
|
firefox-addons = lib.recurseIntoAttrs (callPackage ./firefox-addons { inherit nur sources; });
|
|
|
|
mpvScripts = pkgs.mpvScripts // (callPackage ./mpv-scripts { });
|
2023-06-15 11:49:07 +07:00
|
|
|
|
|
|
|
qemu_7 = callPackage ./qemu_7.nix {
|
2023-06-24 07:12:11 +07:00
|
|
|
stdenv = pkgs'.ccacheStdenv;
|
2023-06-15 11:49:07 +07:00
|
|
|
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-06-24 07:12:11 +07:00
|
|
|
stdenv = pkgs'.ccacheStdenv;
|
2023-06-15 11:49:07 +07:00
|
|
|
};
|
2023-06-24 14:52:13 +07:00
|
|
|
} // (import ../system/hardware/bpi-r3/pkgs.nix { inherit pkgs pkgs' lib sources; })
|