haccfiles/pkgs/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

{ config ? {}, system ? builtins.currentSystem, ... }@args:
2020-11-27 20:56:20 +00:00
let
sources = import ../nix/sources.nix;
pkgs = import sources.nixpkgs args;
unstable = import sources.nixpkgs-unstable args;
2020-11-27 20:56:20 +00:00
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
2020-11-27 20:56:20 +00:00
newpkgs = {
2020-12-05 18:56:49 +00:00
alps = callPackage ./alps {};
docker = (pkgs.callPackage (pkgs.path + "/pkgs/applications/virtualization/docker") {
iptables = pkgs.writeScriptBin "iptables" ''
#!${pkgs.runtimeShell}
echo docker tried to run the following iptables command: $@
exit 0
'';
}).docker_19_03.overrideAttrs (super: {
extraPath = super.extraPath + ":${pkgs.zfs}/bin";
});
linuxPackagesFor = kernel: (pkgs.linuxPackagesFor kernel).extend (_: ksuper: {
decklink = callPackage ./decklink { kernel = ksuper.kernel; };
});
blackmagicDesktopVideo = callPackage ./blackmagic-desktop-video { };
obs-studio = unstable.obs-studio.overrideAttrs (_: rec {
wrapLibraries = with (pkgs // newpkgs); [
xorg.libX11.out
libvlc
blackmagicDesktopVideo
libcxx
libcxxabi
];
postInstall = ''
wrapProgram $out/bin/obs \
--prefix "LD_LIBRARY_PATH" : "${pkgs.lib.makeLibraryPath wrapLibraries}"
'';
});
mattermost = callPackage ./mattermost {};
jre_headless = pkgs.jdk11_headless;
inherit (unstable) bottom;
2020-11-27 20:56:20 +00:00
};
in pkgs.extend(_: _: newpkgs)