168 lines
6.8 KiB
Nix
168 lines
6.8 KiB
Nix
{ pkgs
|
|
, lib
|
|
, inputs
|
|
, pkgs' ? pkgs
|
|
, isOverlay ? true
|
|
, ...
|
|
}:
|
|
|
|
let
|
|
inherit (pkgs') callPackage;
|
|
sources = import ./_sources/generated.nix {
|
|
inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools;
|
|
};
|
|
nixForNixPlugins = pkgs.nixVersions.nix_2_18;
|
|
nur = import inputs.nur {
|
|
inherit pkgs;
|
|
nurpkgs = pkgs;
|
|
};
|
|
in
|
|
|
|
{
|
|
inherit (inputs.nix-gaming.packages.${pkgs.system}) faf-client osu-lazer-bin;
|
|
inherit nixForNixPlugins;
|
|
nix = nixForNixPlugins;
|
|
nixVersions = pkgs.nixVersions.extend (self: super: {
|
|
stable = nixForNixPlugins;
|
|
unstable = nixForNixPlugins;
|
|
});
|
|
# Various patches to change Nix version of existing packages so they don't error out because of nix-plugins in nix.conf
|
|
nix-plugins = (pkgs.nix-plugins.override { nix = nixForNixPlugins; }).overrideAttrs (old: {
|
|
version = "13.0.0";
|
|
patches = [
|
|
(pkgs.fetchpatch {
|
|
# pull 16
|
|
url = "https://github.com/chayleaf/nix-plugins/commit/8f945cadad7f2e60e8f308b2f498ec5e16961ede.patch";
|
|
hash = "sha256-pOogMtjXYkSDtXW12TmBpGr/plnizJtud2nP3q2UldQ=";
|
|
})
|
|
];
|
|
});
|
|
harmonia = (pkgs.harmonia.override { nix = nixForNixPlugins; }); /*.overrideAttrs {
|
|
patches = [
|
|
(pkgs.fetchpatch {
|
|
url = "https://github.com/nix-community/harmonia/pull/145/commits/394c939a45fa9c590347e149400876c318610b1e.patch";
|
|
hash = "sha256-DvyE7/0PW3XRtFgIrl4IQa7RIQLQZoKLddxCZvhpu3I=";
|
|
})
|
|
];
|
|
};*/
|
|
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; };
|
|
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 []);
|
|
});*/
|
|
}).overrideAttrs (old: {
|
|
# who cares about failing tests amirite
|
|
doCheck = false;
|
|
patches = (old.patches or [ ]) ++ [
|
|
(pkgs.fetchpatch {
|
|
url = "https://github.com/chayleaf/hydra/commit/e9da80fff6234fab2458173272ee0bedbe8935c3.patch";
|
|
hash = "sha256-PS8rwe5lIzvaVlh/DogYmW5OccVfpKQ6JehTQibx2XQ=";
|
|
})
|
|
];
|
|
});
|
|
nurl = pkgs.nurl.override { nix = nixForNixPlugins; };
|
|
/*nvfetcher = pkgs.nvfetcher.overrideAttrs (old: {
|
|
meta = builtins.removeAttrs old.meta [ "broken" ];
|
|
});*/
|
|
|
|
buffyboard = pkgs.callPackage ./buffyboard { };
|
|
clang-tools_latest = pkgs.clang-tools_16;
|
|
clang_latest = pkgs.clang_16;
|
|
/*ghidra = pkgs.ghidra.overrideAttrs (old: {
|
|
patches = old.patches ++ [ ./ghidra-stdcall.patch ];
|
|
});*/
|
|
ffmpeg-custom = (pkgs.callPackage (import /${pkgs.path}/pkgs/development/libraries/ffmpeg/generic.nix {
|
|
version = "6.1";
|
|
sha256 = "sha256-NzhD2D16bCVCyCXo0TRwZYp3Ta5eFSfoQPa+iRkeNZg=";
|
|
}) {
|
|
ffmpegVariant = "full";
|
|
withCuda = false;
|
|
withCudaLLVM = false;
|
|
withNvdec = false;
|
|
withNvenc = false;
|
|
inherit (pkgs'.darwin.apple_sdk.frameworks)
|
|
Cocoa CoreServices CoreAudio CoreMedia AVFoundation MediaToolbox
|
|
VideoDecodeAcceleration VideoToolbox;
|
|
}).overrideAttrs (old: {
|
|
postPatch = ''
|
|
${old.postPatch or ""}
|
|
substituteInPlace libavutil/hwcontext_vulkan.c \
|
|
--replace FF_VK_KHR_VIDEO_DECODE_QUEUE FF_VK_EXT_VIDEO_DECODE_QUEUE \
|
|
--replace FF_VK_KHR_VIDEO_DECODE_H264 FF_VK_EXT_VIDEO_DECODE_H264 \
|
|
--replace FF_VK_KHR_VIDEO_DECODE_H265 FF_VK_EXT_VIDEO_DECODE_H265 \
|
|
--replace FF_VK_KHR_VIDEO_DECODE_AV1 FF_VK_EXT_VIDEO_DECODE_AV1
|
|
'';
|
|
buildInputs = old.buildInputs ++ [ pkgs.libaribcaption ];
|
|
configureFlags = old.configureFlags ++ [ "--enable-libaribcaption" ];
|
|
});
|
|
gimp = callPackage ./gimp { inherit (pkgs) gimp; };
|
|
home-daemon = callPackage ./home-daemon { };
|
|
# 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;
|
|
};
|
|
});
|
|
kvmfrOverlay = kvmfr: kvmfr.overrideAttrs (old: {
|
|
inherit (pkgs'.looking-glass-client) version src;
|
|
});
|
|
mobile-config-firefox = callPackage ./mobile-config-firefox { };
|
|
ping-exporter = callPackage ./ping-exporter { };
|
|
proton-ge = pkgs.stdenvNoCC.mkDerivation {
|
|
inherit (sources.proton-ge) pname version src;
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
tar -C $out --strip=1 -x -f $src
|
|
'';
|
|
};
|
|
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;
|
|
postInstall = builtins.replaceStrings [ "/botdetection" ] [ "" ] old.postInstall;
|
|
}));
|
|
schlock = callPackage ./schlock { };
|
|
techmino = callPackage ./techmino { };
|
|
|
|
firefoxAddons = lib.recurseIntoAttrs (callPackage ./firefox-addons { inherit nur sources; });
|
|
mpvScripts = lib.optionalAttrs isOverlay pkgs.mpvScripts // callPackage ./mpv-scripts { };
|
|
|
|
qemu_7 = callPackage ./qemu/7.nix {
|
|
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;
|
|
};
|
|
|
|
qemu_7_ccache = pkgs'.qemu_7.override {
|
|
stdenv = pkgs'.ccacheStdenv;
|
|
};
|
|
virtiofsd_ccache = pkgs'.virtiofsd.override {
|
|
qemu = pkgs'.qemu_7_ccache;
|
|
stdenv = pkgs'.ccacheStdenv;
|
|
};
|
|
}
|
|
// import ./ccache.nix { inherit pkgs pkgs' lib sources; }
|
|
// import ../system/hardware/bpi-r3/pkgs.nix { inherit pkgs pkgs' lib sources; }
|
|
// import ../system/hardware/oneplus-enchilada/pkgs.nix { inherit inputs pkgs pkgs' lib sources; }
|