69 lines
2.0 KiB
Nix
69 lines
2.0 KiB
Nix
{ self, config, pkgs, lib, isUnstable, ... }:
|
|
|
|
{
|
|
nixpkgs.overlays = if isUnstable then [
|
|
|
|
(self: super: {
|
|
matrix-synapse = super.matrix-synapse.overrideAttrs (old: {
|
|
version = "1.67.0";
|
|
src = super.python3.pkgs.fetchPypi {
|
|
pname = "matrix-synapse";
|
|
version = "1.67.0";
|
|
sha256 = "sha256-86KVu1wUkVy1/mONVbDM1g+Y+Kh90y1rpf58Kc2VtBY=";
|
|
};
|
|
});
|
|
})
|
|
|
|
(self: super: {
|
|
zig = super.zig.overrideAttrs (old: {
|
|
version = "0.10.0-dev.35e0ff7";
|
|
src = super.fetchFromGitHub {
|
|
owner = "ziglang";
|
|
repo = "zig";
|
|
rev = "10e11b60e56941cb664648dcebfd4db3d2efed30";
|
|
hash = "sha256-oD5yfvaaVtgW/VE+5yHCiJgC+QMwiLe2i+PGX3g/PT0=";
|
|
};
|
|
|
|
patches = [ ];
|
|
|
|
nativeBuildInputs = with pkgs; [ cmake llvmPackages_14.llvm.dev ];
|
|
|
|
buildInputs = with pkgs;
|
|
[ libxml2 zlib ] ++ (with llvmPackages_14; [ libclang lld llvm ]);
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
runHook postCheck
|
|
'';
|
|
|
|
});
|
|
})
|
|
|
|
# TODO: send PR
|
|
(self: super: {
|
|
tidal-hifi = super.tidal-hifi.overrideAttrs (old: {
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.imagemagick ];
|
|
postFixup = ''
|
|
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
|
|
--prefix LD_LIBRARY_PATH : "${
|
|
lib.makeLibraryPath super.tidal-hifi.buildInputs
|
|
}" \
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
substituteInPlace $out/share/applications/tidal-hifi.desktop --replace \
|
|
"/opt/tidal-hifi/tidal-hifi" "tidal-hifi"
|
|
|
|
for size in 48 64 128 256 512; do
|
|
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/
|
|
convert $out/share/icons/hicolor/0x0/apps/tidal-hifi.png \
|
|
-resize ''${size}x''${size} \
|
|
$out/share/icons/hicolor/''${size}x''${size}/apps/tidal-hifi.png
|
|
done
|
|
'';
|
|
|
|
});
|
|
})
|
|
] else
|
|
[ ];
|
|
}
|