about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/lo
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/lo')
-rw-r--r--nixpkgs/pkgs/by-name/lo/loksh/package.nix64
-rw-r--r--nixpkgs/pkgs/by-name/lo/lorem/package.nix61
-rw-r--r--nixpkgs/pkgs/by-name/lo/louvain-community/package.nix27
3 files changed, 152 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/lo/loksh/package.nix b/nixpkgs/pkgs/by-name/lo/loksh/package.nix
new file mode 100644
index 000000000000..4ba926aa2f53
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/lo/loksh/package.nix
@@ -0,0 +1,64 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, meson
+, ncurses
+, ninja
+, pkg-config
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "loksh";
+  version = "7.4";
+
+  src = fetchFromGitHub {
+    owner = "dimkr";
+    repo = "loksh";
+    rev = finalAttrs.version;
+    fetchSubmodules = true;
+    hash = "sha256-gQK9gq6MsKVyOikOW0sW/SbIM1K/3I8pn58P/SqzKys=";
+  };
+
+  outputs = [ "out" "doc" "man" ];
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+  ];
+
+  buildInputs = [
+    ncurses
+  ];
+
+  strictDeps = true;
+
+  postInstall = ''
+    mv $out/bin/ksh $out/bin/loksh
+    pushd $man/share/man/man1/
+    mv ksh.1 loksh.1
+    mv sh.1 loksh-sh.1
+    popd
+  '';
+
+  passthru = {
+    shellPath = "/bin/loksh";
+  };
+
+  meta = {
+    homepage = "https://github.com/dimkr/loksh";
+    description = "Linux port of OpenBSD's ksh";
+    longDescription = ''
+      loksh is a Linux port of OpenBSD's ksh.
+
+      Unlike other ports of ksh, loksh targets only one platform, follows
+      upstream closely and keeps changes to a minimum. loksh does not add any
+      extra features; this reduces the risk of introducing security
+      vulnerabilities and makes loksh a good fit for resource-constrained
+      systems.
+    '';
+    license = with lib.licenses; [ publicDomain ];
+    maintainers = with lib.maintainers; [ AndersonTorres cameronnemo ];
+    platforms = lib.platforms.linux;
+  };
+})
diff --git a/nixpkgs/pkgs/by-name/lo/lorem/package.nix b/nixpkgs/pkgs/by-name/lo/lorem/package.nix
new file mode 100644
index 000000000000..d024aeaf614a
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/lo/lorem/package.nix
@@ -0,0 +1,61 @@
+{ lib
+, cargo
+, desktop-file-utils
+, fetchFromGitLab
+, glib
+, gtk4
+, libadwaita
+, meson
+, ninja
+, pkg-config
+, rustPlatform
+, rustc
+, stdenv
+, wrapGAppsHook4
+}:
+
+stdenv.mkDerivation rec {
+  pname = "lorem";
+  version = "1.3";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "World/design";
+    repo = pname;
+    rev = version;
+    hash = "sha256-+Dp/o1rZSHWihLLLe6CzV6c7uUnSsE8Ct3tbLNqlGF0=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-YYjPhlPp211i+ECPu1xgDumz8nVqWRO8YzcZXy8uunI=";
+  };
+
+  nativeBuildInputs = [
+    cargo
+    desktop-file-utils
+    meson
+    ninja
+    pkg-config
+    rustPlatform.cargoSetupHook
+    rustc
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    glib
+    gtk4
+    libadwaita
+  ];
+
+  meta = with lib; {
+    description = "Generate placeholder text";
+    homepage = "https://gitlab.gnome.org/World/design/lorem";
+    changelog = "https://gitlab.gnome.org/World/design/lorem/-/releases/${version}";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ michaelgrahamevans ];
+    mainProgram = "lorem";
+    platforms = platforms.linux;
+  };
+}
diff --git a/nixpkgs/pkgs/by-name/lo/louvain-community/package.nix b/nixpkgs/pkgs/by-name/lo/louvain-community/package.nix
new file mode 100644
index 000000000000..e9dfdf722efd
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/lo/louvain-community/package.nix
@@ -0,0 +1,27 @@
+{ stdenv
+, fetchFromGitHub
+, cmake
+, lib
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "louvain-community";
+  version = "unstable-2021-03-18";
+
+  src = fetchFromGitHub {
+    owner = "meelgroup";
+    repo = "louvain-community";
+    rev = "8cc5382d4844af127b1c1257373740d7e6b76f1e";
+    hash = "sha256-0i3wrDdOyleOPv5iVO1YzPfTPnIdljLabCvl3SYEQOs=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with lib; {
+    description = "Louvain Community Detection Library";
+    homepage = "https://github.com/meelgroup/louvain-community";
+    license = licenses.lgpl3Only;
+    maintainers = with maintainers; [ t4ccer ];
+    platforms = platforms.unix;
+  };
+})