diff options
Diffstat (limited to 'pkgs/by-name/na')
-rw-r--r-- | pkgs/by-name/na/naja/package.nix | 73 | ||||
-rw-r--r-- | pkgs/by-name/na/namespace-cli/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/na/nanoboyadvance/package.nix | 1 | ||||
-rw-r--r-- | pkgs/by-name/na/nanopb/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/na/naproche/package.nix | 35 | ||||
-rw-r--r-- | pkgs/by-name/na/naps2/package.nix | 4 | ||||
-rw-r--r-- | pkgs/by-name/na/nar-serve/package.nix | 30 | ||||
-rw-r--r-- | pkgs/by-name/na/narsil/package.nix | 53 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus-open-in-blackbox/package.nix | 4 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus-python/fix-paths.patch | 14 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus-python/package.nix | 71 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus/extension_dir.patch | 24 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus/fix-paths.patch | 13 | ||||
-rw-r--r-- | pkgs/by-name/na/nautilus/package.nix | 140 | ||||
-rw-r--r-- | pkgs/by-name/na/nawk/package.nix | 32 |
15 files changed, 456 insertions, 46 deletions
diff --git a/pkgs/by-name/na/naja/package.nix b/pkgs/by-name/na/naja/package.nix new file mode 100644 index 0000000000000..dd0903a21f29e --- /dev/null +++ b/pkgs/by-name/na/naja/package.nix @@ -0,0 +1,73 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + bison, + boost, + capnproto, + doxygen, + flex, + libdwarf-lite, + pkg-config, + python3, + tbb_2021_11, +}: +stdenv.mkDerivation { + pname = "naja"; + version = "0-unstable-2024-07-21"; + + src = fetchFromGitHub { + owner = "najaeda"; + repo = "naja"; + rev = "8c068f3bd1bbd57b851547f191a58a375fd35cda"; + hash = "sha256-aUYPJGr4D5n92fp0namPT6I/gMRZoF7YHnB7GoRzwYI="; + fetchSubmodules = true; + }; + + outputs = [ + "dev" + "lib" + "out" + ]; + + strictDeps = true; + + nativeBuildInputs = [ + bison + capnproto + cmake + doxygen + flex + pkg-config + python3 + ]; + + buildInputs = [ + boost + capnproto # cmake modules + flex # include dir + libdwarf-lite + tbb_2021_11 + ]; + + cmakeFlags = [ + (lib.cmakeBool "CPPTRACE_USE_EXTERNAL_LIBDWARF" true) + (lib.cmakeBool "CPPTRACE_USE_EXTERNAL_ZSTD" true) + ]; + + doCheck = true; + + meta = { + description = "Structural Netlist API (and more) for EDA post synthesis flow development"; + homepage = "https://github.com/najaeda/naja"; + license = lib.licenses.asl20; + maintainers = [ + # maintained by the team working on NGI-supported software, no group for this yet + ]; + mainProgram = "naja_edit"; + platforms = lib.platforms.all; + # "aligned deallocation function of type [...] is only available on macOS 10.13 or newer" even with 11.0 SDK + broken = stdenv.hostPlatform.isDarwin; + }; +} diff --git a/pkgs/by-name/na/namespace-cli/package.nix b/pkgs/by-name/na/namespace-cli/package.nix index 5e79e29ee4586..fd6807d7b025b 100644 --- a/pkgs/by-name/na/namespace-cli/package.nix +++ b/pkgs/by-name/na/namespace-cli/package.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "namespace-cli"; - version = "0.0.380"; + version = "0.0.389"; src = fetchFromGitHub { owner = "namespacelabs"; repo = "foundation"; rev = "v${version}"; - hash = "sha256-DAOSkWT+fe0av0EpjK8HxgIei6urgFJrNeMdZfrDqDM="; + hash = "sha256-UtHUqintxcNSHDfrK2vWQxsHBXQ63vZZ5bm/RSA6DSc="; }; - vendorHash = "sha256-y+mXUzkY5w2hYECtfcBBUCWsRwhip6IhX617lRX698Q="; + vendorHash = "sha256-MQAEvJcu8cXPZbk7HTb7eD1yECvMcQXytvNQwG+4ky0="; subPackages = ["cmd/nsc" "cmd/ns" "cmd/docker-credential-nsc"]; diff --git a/pkgs/by-name/na/nanoboyadvance/package.nix b/pkgs/by-name/na/nanoboyadvance/package.nix index b973959bc82bc..48b7430774add 100644 --- a/pkgs/by-name/na/nanoboyadvance/package.nix +++ b/pkgs/by-name/na/nanoboyadvance/package.nix @@ -53,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "USE_SYSTEM_FMT" true) (lib.cmakeBool "USE_SYSTEM_TOML11" true) (lib.cmakeBool "USE_SYSTEM_UNARR" true) + (lib.cmakeBool "PORTABLE_MODE" false) ]; meta = { diff --git a/pkgs/by-name/na/nanopb/package.nix b/pkgs/by-name/na/nanopb/package.nix index bd14e9d8c75bb..bfd72b7214f6f 100644 --- a/pkgs/by-name/na/nanopb/package.nix +++ b/pkgs/by-name/na/nanopb/package.nix @@ -26,6 +26,7 @@ let inherit (self.passthru) generator-out; }; python3 = buildPackages.python3.override { + self = python3; packageOverrides = _: _: { nanopb-proto = self.passthru.python-module; }; @@ -119,4 +120,3 @@ in ''; }; }) - diff --git a/pkgs/by-name/na/naproche/package.nix b/pkgs/by-name/na/naproche/package.nix new file mode 100644 index 0000000000000..1843ebf1c7899 --- /dev/null +++ b/pkgs/by-name/na/naproche/package.nix @@ -0,0 +1,35 @@ +{ lib, fetchFromGitHub, haskellPackages, makeWrapper, eprover }: + +with haskellPackages; mkDerivation { + pname = "Naproche-SAD"; + version = "unstable-2024-05-19"; + + src = fetchFromGitHub { + owner = "naproche"; + repo = "naproche"; + rev = "ccb35e6eeb31c82bdd8857d5f84deda296ed53ec"; + hash = "sha256-pIRKjbSFP1q8ldMZXm0WSP0FJqy/lQslNQcoed/y9W0="; + }; + + isExecutable = true; + + buildTools = [ hpack makeWrapper ]; + executableHaskellDepends = [ + base array bytestring containers ghc-prim megaparsec mtl network process + split temporary text threads time transformers uuid + ]; + + prePatch = "hpack"; + doCheck = false; # Tests are broken in upstream + + postInstall = '' + wrapProgram $out/bin/Naproche-SAD \ + --set-default NAPROCHE_EPROVER ${eprover}/bin/eprover + ''; + + homepage = "https://github.com/naproche/naproche#readme"; + description = "Write formal proofs in natural language and LaTeX"; + maintainers = with lib.maintainers; [ jvanbruegge ]; + license = lib.licenses.gpl3Only; + mainProgram = "Naproche-SAD"; +} diff --git a/pkgs/by-name/na/naps2/package.nix b/pkgs/by-name/na/naps2/package.nix index c3493fb5735de..728445a1da2ea 100644 --- a/pkgs/by-name/na/naps2/package.nix +++ b/pkgs/by-name/na/naps2/package.nix @@ -12,13 +12,13 @@ buildDotnetModule rec { pname = "naps2"; - version = "7.4.2"; + version = "7.4.3"; src = fetchFromGitHub { owner = "cyanfish"; repo = "naps2"; rev = "v${version}"; - hash = "sha256-1tPPb8bAQSc5FpizWpi7q4alxoA6xfb/QOAaTK2eNc8="; + hash = "sha256-/qSfxGHcCSoNp516LFYWgEL4csf8EKgtSffBt1C02uE="; }; projectFile = "NAPS2.App.Gtk/NAPS2.App.Gtk.csproj"; diff --git a/pkgs/by-name/na/nar-serve/package.nix b/pkgs/by-name/na/nar-serve/package.nix new file mode 100644 index 0000000000000..8bd274af659f0 --- /dev/null +++ b/pkgs/by-name/na/nar-serve/package.nix @@ -0,0 +1,30 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, nixosTests +}: +buildGoModule rec { + pname = "nar-serve"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "numtide"; + repo = "nar-serve"; + rev = "v${version}"; + hash = "sha256-8QuMS00EutmqzAIPxyJEPxM8EHiWlSKs6E2Htoh3Kes="; + }; + + vendorHash = "sha256-td9NYHGYJYPlIj2tnf5I/GnJQOOgODc6TakHFwxyvLQ="; + + doCheck = false; + + passthru.tests = { inherit (nixosTests) nar-serve; }; + + meta = with lib; { + description = "Serve NAR file contents via HTTP"; + mainProgram = "nar-serve"; + homepage = "https://github.com/numtide/nar-serve"; + license = licenses.mit; + maintainers = with maintainers; [ rizary zimbatm ]; + }; +} diff --git a/pkgs/by-name/na/narsil/package.nix b/pkgs/by-name/na/narsil/package.nix index 9e6d3ba1dc025..d7cff844020ed 100644 --- a/pkgs/by-name/na/narsil/package.nix +++ b/pkgs/by-name/na/narsil/package.nix @@ -1,36 +1,40 @@ -{ lib -, stdenv -, fetchFromGitHub -, autoreconfHook -, ncurses -, enableSdl2 ? true -, SDL2 -, SDL2_image -, SDL2_sound -, SDL2_mixer -, SDL2_ttf +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + nix-update-script, + ncurses, + enableSdl2 ? true, + SDL2, + SDL2_image, + SDL2_sound, + SDL2_mixer, + SDL2_ttf, }: - stdenv.mkDerivation rec { pname = "narsil"; - version = "1.3.0-49-gc042b573a"; + version = "1.3.0-85-g68f1491ca"; src = fetchFromGitHub { owner = "NickMcConnell"; repo = "NarSil"; rev = version; - hash = "sha256-lVGG4mppsnDmjMFO8YWsLEJEhI3T+QO3z/pCebe0Ai8="; + hash = "sha256-uiueTkfucYcK6BQ0WpXp8Sye7E0D1uxd/InowWznBjY="; }; + passthru.updateScript = nix-update-script { }; + nativeBuildInputs = [ autoreconfHook ]; - buildInputs = [ ncurses ] + buildInputs = + [ ncurses ] ++ lib.optionals enableSdl2 [ - SDL2 - SDL2_image - SDL2_sound - SDL2_mixer - SDL2_ttf - ]; + SDL2 + SDL2_image + SDL2_sound + SDL2_mixer + SDL2_ttf + ]; enableParallelBuilding = true; @@ -38,15 +42,16 @@ stdenv.mkDerivation rec { installFlags = [ "bindir=$(out)/bin" ]; - meta = with lib; { + meta = { homepage = "https://github.com/NickMcConnell/NarSil/"; description = "Unofficial rewrite of Sil, a roguelike influenced by Angband"; mainProgram = "narsil"; + changelog = "https://github.com/NickMcConnell/NarSil/releases/tag/${version}"; longDescription = '' NarSil attempts to be an almost-faithful recreation of Sil 1.3.0, but based on the codebase of modern Angband. ''; - maintainers = [ maintainers.nanotwerp ]; - license = licenses.gpl2; + maintainers = with lib.maintainers; [ nanotwerp x123 ]; + license = lib.licenses.gpl2; }; } diff --git a/pkgs/by-name/na/nautilus-open-in-blackbox/package.nix b/pkgs/by-name/na/nautilus-open-in-blackbox/package.nix index 638d6ac671e15..cb8c6434e24cb 100644 --- a/pkgs/by-name/na/nautilus-open-in-blackbox/package.nix +++ b/pkgs/by-name/na/nautilus-open-in-blackbox/package.nix @@ -1,4 +1,4 @@ -{ python3, fetchFromGitHub, gnome, stdenv, lib }: +{ python3, fetchFromGitHub, nautilus-python, stdenv, lib }: stdenv.mkDerivation rec { pname = "nautilus-open-in-blackbox"; version = "0.1.1"; @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { patches = [ ./paths.patch ]; buildInputs = [ - gnome.nautilus-python + nautilus-python python3.pkgs.pygobject3 ]; diff --git a/pkgs/by-name/na/nautilus-python/fix-paths.patch b/pkgs/by-name/na/nautilus-python/fix-paths.patch new file mode 100644 index 0000000000000..ba82937d6c9c5 --- /dev/null +++ b/pkgs/by-name/na/nautilus-python/fix-paths.patch @@ -0,0 +1,14 @@ +diff --git a/src/nautilus-python.c b/src/nautilus-python.c +index 843e3c6..466a513 100644 +--- a/src/nautilus-python.c ++++ b/src/nautilus-python.c +@@ -184,6 +184,9 @@ nautilus_python_init_python (void) { + return FALSE; + } + ++ debug("Add PyGObject to path"); ++ PyRun_SimpleString("import site;import functools; functools.reduce(lambda k, p: site.addsitedir(p, k), [@pythonPaths@], site._init_pathinfo())"); ++ + /* import gobject */ + debug("init_pygobject"); + if (!np_init_pygobject()) { diff --git a/pkgs/by-name/na/nautilus-python/package.nix b/pkgs/by-name/na/nautilus-python/package.nix new file mode 100644 index 0000000000000..993d3e2933aff --- /dev/null +++ b/pkgs/by-name/na/nautilus-python/package.nix @@ -0,0 +1,71 @@ +{ + stdenv, + lib, + substituteAll, + fetchurl, + meson, + ninja, + pkg-config, + gtk-doc, + docbook-xsl-nons, + docbook_xml_dtd_412, + python3, + nautilus, + gnome, +}: + +stdenv.mkDerivation (finalAttrs:{ + pname = "nautilus-python"; + version = "4.0.1"; + + outputs = [ + "out" + "dev" + "doc" + "devdoc" + ]; + + src = fetchurl { + url = "mirror://gnome/sources/nautilus-python/${lib.versions.majorMinor finalAttrs.version}/nautilus-python-${finalAttrs.version}.tar.xz"; + hash = "sha256-/EnBBPsyoK0ZWmawE2eEzRnRDYs+jVnV7n9z6PlOko8="; + }; + + patches = [ + # Make PyGObject’s gi library available. + (substituteAll { + src = ./fix-paths.patch; + pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [ + python3.pkgs.pygobject3 + ]; + }) + ]; + + nativeBuildInputs = [ + pkg-config + meson + ninja + gtk-doc + docbook-xsl-nons + docbook_xml_dtd_412 + ]; + + buildInputs = [ + python3 + python3.pkgs.pygobject3 + nautilus + ]; + + passthru = { + updateScript = gnome.updateScript { + packageName = "nautilus-python"; + }; + }; + + meta = with lib; { + description = "Python bindings for the Nautilus Extension API"; + homepage = "https://gitlab.gnome.org/GNOME/nautilus-python"; + license = licenses.gpl2Plus; + maintainers = teams.gnome.members; + platforms = platforms.unix; + }; +}) diff --git a/pkgs/by-name/na/nautilus/extension_dir.patch b/pkgs/by-name/na/nautilus/extension_dir.patch new file mode 100644 index 0000000000000..d7cd161a8dfc5 --- /dev/null +++ b/pkgs/by-name/na/nautilus/extension_dir.patch @@ -0,0 +1,24 @@ +diff --git a/src/nautilus-module.c b/src/nautilus-module.c +index cd889ff18..e2cd6468e 100644 +--- a/src/nautilus-module.c ++++ b/src/nautilus-module.c +@@ -267,6 +267,7 @@ void + nautilus_module_setup (void) + { + static gboolean initialized = FALSE; ++ const gchar* extensiondir = NULL; + const gchar *disable_plugins; + + disable_plugins = g_getenv ("NAUTILUS_DISABLE_PLUGINS"); +@@ -280,7 +281,12 @@ nautilus_module_setup (void) + { + initialized = TRUE; + +- load_module_dir (NAUTILUS_EXTENSIONDIR); ++ extensiondir = g_getenv ("NAUTILUS_4_EXTENSION_DIR"); ++ if (extensiondir == NULL) { ++ extensiondir = NAUTILUS_EXTENSIONDIR; ++ } ++ ++ load_module_dir (extensiondir); + } diff --git a/pkgs/by-name/na/nautilus/fix-paths.patch b/pkgs/by-name/na/nautilus/fix-paths.patch new file mode 100644 index 0000000000000..dc9874359b233 --- /dev/null +++ b/pkgs/by-name/na/nautilus/fix-paths.patch @@ -0,0 +1,13 @@ +diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c +index 28b96c996..0b1fad9ab 100644 +--- a/src/nautilus-tag-manager.c ++++ b/src/nautilus-tag-manager.c +@@ -962,7 +962,7 @@ child_watch_cb (GPid pid, + static void + export_tracker2_data (NautilusTagManager *self) + { +- gchar *argv[] = {"tracker3", "export", "--2to3", "files-starred", "--keyfile", NULL}; ++ gchar *argv[] = {"@tracker@/bin/tracker3", "export", "--2to3", "files-starred", "--keyfile", NULL}; + gint stdout_fd; + GPid child_pid; + g_autoptr (GError) error = NULL; diff --git a/pkgs/by-name/na/nautilus/package.nix b/pkgs/by-name/na/nautilus/package.nix new file mode 100644 index 0000000000000..660867e81ebd8 --- /dev/null +++ b/pkgs/by-name/na/nautilus/package.nix @@ -0,0 +1,140 @@ +{ + lib, + stdenv, + fetchurl, + meson, + ninja, + pkg-config, + gi-docgen, + docbook-xsl-nons, + gettext, + desktop-file-utils, + wrapGAppsHook4, + gtk4, + libadwaita, + libportal-gtk4, + gnome, + adwaita-icon-theme, + gnome-autoar, + glib-networking, + shared-mime-info, + libnotify, + libexif, + libjxl, + libseccomp, + librsvg, + webp-pixbuf-loader, + tracker, + tracker-miners, + gexiv2, + libselinux, + libcloudproviders, + gdk-pixbuf, + substituteAll, + gnome-desktop, + gst_all_1, + gsettings-desktop-schemas, + gnome-user-share, + gobject-introspection, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "nautilus"; + version = "46.2"; + + outputs = [ + "out" + "dev" + "devdoc" + ]; + + src = fetchurl { + url = "mirror://gnome/sources/nautilus/${lib.versions.major finalAttrs.version}/nautilus-${finalAttrs.version}.tar.xz"; + hash = "sha256-bujJkBm540R/aRjWgjKiDeyonlUlwFgFQyt9iEDKcfo="; + }; + + patches = [ + # Allow changing extension directory using environment variable. + ./extension_dir.patch + + # Hardcode required paths. + (substituteAll { + src = ./fix-paths.patch; + inherit tracker; + }) + ]; + + nativeBuildInputs = [ + desktop-file-utils + gettext + gobject-introspection + meson + ninja + pkg-config + gi-docgen + docbook-xsl-nons + wrapGAppsHook4 + ]; + + buildInputs = [ + gexiv2 + glib-networking + gnome-desktop + adwaita-icon-theme + gsettings-desktop-schemas + gnome-user-share + gst_all_1.gst-plugins-base + gtk4 + libadwaita + libportal-gtk4 + libexif + libnotify + libseccomp + libselinux + gdk-pixbuf + libcloudproviders + shared-mime-info + tracker + tracker-miners + gnome-autoar + ]; + + propagatedBuildInputs = [ + gtk4 + ]; + + mesonFlags = [ + "-Ddocs=true" + ]; + + preFixup = '' + gappsWrapperArgs+=( + # Thumbnailers + --prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share" + --prefix XDG_DATA_DIRS : "${libjxl}/share" + --prefix XDG_DATA_DIRS : "${librsvg}/share" + --prefix XDG_DATA_DIRS : "${webp-pixbuf-loader}/share" + --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" + ) + ''; + + postFixup = '' + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. + moveToOutput "share/doc" "$devdoc" + ''; + + passthru = { + updateScript = gnome.updateScript { + packageName = "nautilus"; + }; + }; + + meta = with lib; { + description = "File manager for GNOME"; + homepage = "https://apps.gnome.org/Nautilus/"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = teams.gnome.members; + mainProgram = "nautilus"; + }; +}) diff --git a/pkgs/by-name/na/nawk/package.nix b/pkgs/by-name/na/nawk/package.nix index f05cd3cd3de0c..cb8766c8c6b0c 100644 --- a/pkgs/by-name/na/nawk/package.nix +++ b/pkgs/by-name/na/nawk/package.nix @@ -1,30 +1,31 @@ -{ lib -, stdenv -, fetchFromGitHub -, bison -, buildPackages -, installShellFiles +{ + lib, + stdenv, + fetchFromGitHub, + bison, + buildPackages, + installShellFiles, }: stdenv.mkDerivation (finalAttrs: { pname = "nawk"; - version = "20240422"; + version = "20240728"; src = fetchFromGitHub { owner = "onetrueawk"; repo = "awk"; rev = finalAttrs.version; - hash = "sha256-wsRkSXCLtK2jk4gW/Lpg/14NiOUANfmCrYqeKZW6CLY="; + hash = "sha256-LA7fdbMP3aKJ1QljoKWizqVg3ys3hd8tGaRsQnIO+Hc="; }; depsBuildBuild = [ buildPackages.stdenv.cc ]; - nativeBuildInputs = [ - bison - installShellFiles - ]; + nativeBuildInputs = [ bison installShellFiles ]; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" @@ -50,7 +51,10 @@ stdenv.mkDerivation (finalAttrs: { changelog = "https://github.com/onetrueawk/awk/blob/${finalAttrs.src.rev}/ChangeLog"; license = lib.licenses.mit; mainProgram = "nawk"; - maintainers = with lib.maintainers; [ AndersonTorres konimex ]; + maintainers = with lib.maintainers; [ + AndersonTorres + konimex + ]; platforms = lib.platforms.all; }; }) |