Loading pkgs/by-name/he/headphones-toolbox/package.nix +42 −32 Original line number Diff line number Diff line { cargo-tauri, fetchFromGitHub, fetchYarnDeps, lib, stdenv, dpkg, fetchurl, autoPatchelfHook, webkitgtk_4_0, nix-update-script, nodejs, pkg-config, rustPlatform, webkitgtk_4_1, wrapGAppsHook3, yarnConfigHook, }: stdenv.mkDerivation (finalAttrs: { name = "headphones-toolbox"; version = "0.0.5"; rustPlatform.buildRustPackage (rec { pname = "headphones-toolbox"; version = "0.0.7"; tag = "test-tauri-v2-2"; src = fetchurl { url = "https://github.com/ploopyco/headphones-toolbox/releases/download/app-v${finalAttrs.version}/ploopy-headphones-toolbox_${finalAttrs.version}_amd64.deb"; hash = "sha256-lWjmpybGcL3sbBng8zCTUtwYhlrQ6cCrKkhiu+g9MsE="; src = fetchFromGitHub { owner = "george-norton"; repo = "headphones-toolbox"; rev = "${tag}"; hash = "sha256-X2HTEPxvBzbhfN1vqQVk81Qk1Z+EV+7/SpjZrDHv+fM="; }; nativeBuildInputs = [ dpkg autoPatchelfHook ]; offlineCache = fetchYarnDeps { yarnLock = "${src}/yarn.lock"; hash = "sha256-Ln5U0KKsKm6ZLViZIWfBiBjm/mQNEIxaj4nTR55PcRg="; }; buildInputs = [ webkitgtk_4_0 ]; useFetchCargoVendor = true; cargoHash = "sha256-VgCxYYNBV45sTzouS5NE7nOUViPj0gJO7DSKlJSAT4U="; cargoRoot = "src-tauri"; buildAndTestSubdir = cargoRoot; installPhase = '' runHook preInstall nativeBuildInputs = [ cargo-tauri.hook nodejs pkg-config wrapGAppsHook3 yarnConfigHook ]; mkdir -p $out/bin mv usr/bin $out mv usr/lib $out mv usr/share $out buildInputs = [ webkitgtk_4_1 ]; runHook postInstall ''; passthru.updateScript = nix-update-script { }; meta = with lib; { meta = { description = "UI for configuring Ploopy Headphones"; homepage = "https://github.com/ploopyco/headphones-toolbox/"; maintainers = with maintainers; [ license = lib.licenses.gpl3Only; mainProgram = "headphones-toolbox"; maintainers = with lib.maintainers; [ flacks knarkzel nyabinary ]; license = licenses.gpl3Only; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; platforms = [ "x86_64-linux" ]; mainProgram = "headphones-toolbox"; platforms = lib.platforms.linux; }; }) Loading
pkgs/by-name/he/headphones-toolbox/package.nix +42 −32 Original line number Diff line number Diff line { cargo-tauri, fetchFromGitHub, fetchYarnDeps, lib, stdenv, dpkg, fetchurl, autoPatchelfHook, webkitgtk_4_0, nix-update-script, nodejs, pkg-config, rustPlatform, webkitgtk_4_1, wrapGAppsHook3, yarnConfigHook, }: stdenv.mkDerivation (finalAttrs: { name = "headphones-toolbox"; version = "0.0.5"; rustPlatform.buildRustPackage (rec { pname = "headphones-toolbox"; version = "0.0.7"; tag = "test-tauri-v2-2"; src = fetchurl { url = "https://github.com/ploopyco/headphones-toolbox/releases/download/app-v${finalAttrs.version}/ploopy-headphones-toolbox_${finalAttrs.version}_amd64.deb"; hash = "sha256-lWjmpybGcL3sbBng8zCTUtwYhlrQ6cCrKkhiu+g9MsE="; src = fetchFromGitHub { owner = "george-norton"; repo = "headphones-toolbox"; rev = "${tag}"; hash = "sha256-X2HTEPxvBzbhfN1vqQVk81Qk1Z+EV+7/SpjZrDHv+fM="; }; nativeBuildInputs = [ dpkg autoPatchelfHook ]; offlineCache = fetchYarnDeps { yarnLock = "${src}/yarn.lock"; hash = "sha256-Ln5U0KKsKm6ZLViZIWfBiBjm/mQNEIxaj4nTR55PcRg="; }; buildInputs = [ webkitgtk_4_0 ]; useFetchCargoVendor = true; cargoHash = "sha256-VgCxYYNBV45sTzouS5NE7nOUViPj0gJO7DSKlJSAT4U="; cargoRoot = "src-tauri"; buildAndTestSubdir = cargoRoot; installPhase = '' runHook preInstall nativeBuildInputs = [ cargo-tauri.hook nodejs pkg-config wrapGAppsHook3 yarnConfigHook ]; mkdir -p $out/bin mv usr/bin $out mv usr/lib $out mv usr/share $out buildInputs = [ webkitgtk_4_1 ]; runHook postInstall ''; passthru.updateScript = nix-update-script { }; meta = with lib; { meta = { description = "UI for configuring Ploopy Headphones"; homepage = "https://github.com/ploopyco/headphones-toolbox/"; maintainers = with maintainers; [ license = lib.licenses.gpl3Only; mainProgram = "headphones-toolbox"; maintainers = with lib.maintainers; [ flacks knarkzel nyabinary ]; license = licenses.gpl3Only; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; platforms = [ "x86_64-linux" ]; mainProgram = "headphones-toolbox"; platforms = lib.platforms.linux; }; })