33 lines
1.4 KiB
Nix
33 lines
1.4 KiB
Nix
# Quince for Nix, from the release tar.gz. Written by tools/package.sh (version and hash); edit the header there.
|
|
# nix build .#default or nix profile install . (from the repo), or callPackage this file.
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, libGL, wayland, libxkbcommon, xorg, fontconfig, dbus, mpv-unwrapped }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "quince";
|
|
version = "0.1.0";
|
|
src = fetchurl {
|
|
url = "https://astar76.com/git/astar76/Quince/releases/download/v${version}/Quince-${version}-Linux-x86_64.tar.gz";
|
|
hash = "sha256-yN9ZXL8rzFHIybphoWX/rxwY/4slbqTpTtF9mBV7M4s=";
|
|
};
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
|
buildInputs = [ mpv-unwrapped stdenv.cc.cc.lib ];
|
|
# Loaded with dlopen at run time, so autoPatchelf can't see them.
|
|
runtimeDependencies = [ libGL wayland libxkbcommon xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr fontconfig dbus ];
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
for d in bin lib share; do [ ! -d $d ] || cp -R $d $out/; done
|
|
install -Dm644 README.md $out/share/doc/quince/README.md
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Material You video player built on mpv";
|
|
homepage = "https://astar76.com/git/astar76/Quince";
|
|
license = lib.licenses.mit;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "quince";
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
};
|
|
}
|