Skip to content

dovi-tool: 2.2.0 → 2.3.0 #414116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions pkgs/by-name/do/dovi-tool/package.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,51 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
fontconfig,
makeFontsConf,
versionCheckHook,
nix-update-script,
}:

let
fontsConf = makeFontsConf {
fontDirectories = [ ];
};
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dovi-tool";
version = "2.2.0";
version = "2.3.0";

src = fetchFromGitHub {
owner = "quietvoid";
repo = "dovi_tool";
tag = finalAttrs.version;
hash = "sha256-z783L6gBr9o44moKYZGwymWEMp5ZW7yOhZcpvbznXK4=";
hash = "sha256-CsF/KgY4D2pBXYzm6FtJt2xo7mSLt3JGkvajRYA4MWA=";
};

cargoHash = "sha256-pwB6QBLeHALbYZHzTBm/ODLPHhxM3B5n+B/0iXYNuVc=";
cargoHash = "sha256-21tb45F66yR5rquWML22EAPsExOkmas6Yquq9vEmhdk=";

nativeBuildInputs = [
nativeBuildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
pkg-config
];

buildInputs = [
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
fontconfig
];

checkFlags = [
# fails because nix-store is read only
"--skip=rpu::plot::plot_p7"
preCheck = lib.optionals (!stdenv.hostPlatform.isDarwin) ''
# Fontconfig error: Cannot load default config file: No such file: (null)
export FONTCONFIG_FILE="${fontsConf}"
# Fontconfig error: No writable cache directories
export XDG_CACHE_HOME="$(mktemp -d)"
'';

# Needed for rpu::plot::plot_p7 to pass in the sandbox.
__impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [
"/System/Library/Fonts/Supplemental/Arial.ttf"
];

nativeInstallCheckInputs = [
Expand Down
Loading