diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-03-13 15:12:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 15:12:27 +0100 |
commit | 4533910a3d3d0801a5fdc555449240adec720a6c (patch) | |
tree | 623b40576ab9d243bf5cb6cea006b7b1fa9a61b2 /pkgs/by-name | |
parent | 7f175e69ca5186cbf6155be19cf2b3f74b5d4613 (diff) | |
parent | bd2585b2c46f52935f1d6111135fb94079a520ea (diff) | |
download | nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar.gz nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar.bz2 nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar.lz nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar.xz nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.tar.zst nixlib-4533910a3d3d0801a5fdc555449240adec720a6c.zip |
Merge pull request #295021 from Aleksanaa/gnome-graphs
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/gn/gnome-graphs/package.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/by-name/gn/gnome-graphs/package.nix b/pkgs/by-name/gn/gnome-graphs/package.nix new file mode 100644 index 000000000000..fb8f5bc1ae43 --- /dev/null +++ b/pkgs/by-name/gn/gnome-graphs/package.nix @@ -0,0 +1,71 @@ +{ lib +, python3Packages +, fetchFromGitLab +, meson +, ninja +, vala +, pkg-config +, gobject-introspection +, blueprint-compiler +, wrapGAppsHook4 +, desktop-file-utils +, shared-mime-info +, libadwaita +}: + +python3Packages.buildPythonApplication rec { + pname = "gnome-graphs"; + version = "1.7.2"; + pyproject = false; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "World"; + repo = "Graphs"; + rev = "v${version}"; + hash = "sha256-CgCLOkKrMEN0Jnib5NZyVa+s3ico2ANt0ALGa4we3Ak="; + }; + + nativeBuildInputs = [ + meson + ninja + vala + pkg-config + gobject-introspection + blueprint-compiler + wrapGAppsHook4 + desktop-file-utils + shared-mime-info + ]; + + buildInputs = [ + libadwaita + ]; + + propagatedBuildInputs = with python3Packages; [ + pygobject3 + numpy + numexpr + sympy + scipy + matplotlib + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=( + "''${gappsWrapperArgs[@]}" + --prefix LD_LIBRARY_PATH : $out/lib + ) + ''; + + meta = with lib; { + description = "A simple, yet powerful tool that allows you to plot and manipulate your data with ease"; + homepage = "https://apps.gnome.org/Graphs"; + license = licenses.gpl3Plus; + mainProgram = "graphs"; + maintainers = with maintainers; [ aleksana ]; + platforms = platforms.linux; # locale.bindtextdomain only available on linux + }; +} |