4c9a200c83
this involves moving the blackmagic package and module from hexchen's nixpkgs fork into this repo directly.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ config ? {}, system ? builtins.currentSystem, ... }@args:
|
|
|
|
let
|
|
sources = import ../nix/sources.nix;
|
|
pkgs = import sources.nixpkgs args;
|
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
|
|
|
|
newpkgs = {
|
|
peertube = callPackage ./peertube { mylibs = import "${sources.immae-nix}/lib" { inherit pkgs; }; };
|
|
alps = callPackage ./alps {};
|
|
|
|
docker = pkgs.docker.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 = pkgs.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}"
|
|
'';
|
|
});
|
|
};
|
|
|
|
in pkgs.extend(_: _: newpkgs)
|