diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/li')
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libfmvoice/package.nix | 52 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libmbd/package.nix | 45 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/linien-gui/package.nix | 47 |
3 files changed, 144 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libfmvoice/package.nix b/nixpkgs/pkgs/by-name/li/libfmvoice/package.nix new file mode 100644 index 000000000000..06284bfd5eaf --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libfmvoice/package.nix @@ -0,0 +1,52 @@ +{ stdenv +, lib +, fetchFromGitHub +, unstableGitUpdater +, zlib +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libfmvoice"; + version = "0.0.0-unstable-2023-12-05"; + + src = fetchFromGitHub { + owner = "vampirefrog"; + repo = "libfmvoice"; + rev = "38b1a0c627ef66fcd9c672c215d2b9849163df12"; + hash = "sha256-kXthY9TynIXNX9wmgn13vs4Mrrv/dmEr7zlWiKstjGk="; + }; + + strictDeps = true; + + enableParallelBuilding = true; + + buildInputs = [ + zlib + ]; + + buildFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + ]; + + installPhase = '' + runHook preInstall + + for prog in $(grep 'PROGS=' Makefile | cut -d'=' -f2); do + install -Dm755 $prog $out/bin/$prog + done + + runHook postInstall + ''; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + meta = with lib; { + description = "C library for loading, saving and converting FM sound chip voice files in various formats"; + homepage = "https://github.com/vampirefrog/libfmvoice"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.all; + }; +}) diff --git a/nixpkgs/pkgs/by-name/li/libmbd/package.nix b/nixpkgs/pkgs/by-name/li/libmbd/package.nix new file mode 100644 index 000000000000..ccb42ef49cfb --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libmbd/package.nix @@ -0,0 +1,45 @@ +{ stdenv +, fetchFromGitHub +, lib +, cmake +, mpi +, blas +, lapack +, scalapack +, gfortran +} : + +assert !blas.isILP64; +assert !lapack.isILP64; + +stdenv.mkDerivation rec { + pname = "libMBD"; + version = "0.12.7"; + + src = fetchFromGitHub { + owner = "libmbd"; + repo = pname; + rev = version; + hash = "sha256-39cvOUTAuuWLGOLdapR5trmCttCnijOWvPhSBTeTxTA="; + }; + + preConfigure = '' + cat > cmake/libMBDVersionTag.cmake << EOF + set(VERSION_TAG "${version}") + EOF + ''; + + nativeBuildInputs = [ cmake gfortran ]; + + buildInputs = [ blas lapack scalapack ]; + + propagatedBuildInputs = [ mpi ]; + + meta = with lib; { + description = "Many-body dispersion library"; + homepage = "https://github.com/libmbd/libmbd"; + license = licenses.mpl20; + platforms = platforms.linux; + maintainers = [ maintainers.sheepforce ]; + }; +} diff --git a/nixpkgs/pkgs/by-name/li/linien-gui/package.nix b/nixpkgs/pkgs/by-name/li/linien-gui/package.nix new file mode 100644 index 000000000000..ba6f6d6b5893 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/linien-gui/package.nix @@ -0,0 +1,47 @@ +{ lib +, python3 +, qt5 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "linien-gui"; + pyproject = true; + + inherit (python3.pkgs.linien-common) src version; + + sourceRoot = "source/linien-gui"; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ] ++ [ + qt5.wrapQtAppsHook + ]; + + # Makes qt-wayland appear in the qt paths injected by the wrapper - helps users + # with `QT_QPA_PLATFORM=wayland` in their environment. + buildInputs = [ + qt5.qtwayland + ]; + + propagatedBuildInputs = with python3.pkgs; [ + appdirs + click + pyqtgraph + pyqt5 + superqt + linien-client + ]; + + dontWrapQtApps = true; + + preFixup = '' + makeWrapperArgs+=("''${qtWrapperArgs[@]}") + ''; + + meta = with lib; { + description = "Graphical user interface of the Linien spectroscopy lock application"; + homepage = "https://github.com/linien-org/linien/tree/develop/linien-gui"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fsagbuya doronbehar ]; + }; +} |