summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-16 21:31:44 +0100
committerGitHub <noreply@github.com>2023-11-16 21:31:44 +0100
commitb74d956ece9628dad174f101f5d2f6b0b4c279e1 (patch)
tree7a99574b24b02e68ffe7be473587f94431b53bbd /pkgs/misc
parentda1923d134244ccf6d6fabe7e7df0ad4a8b4b8b1 (diff)
parentd989747e0c73002228a9d89a35964732149d6166 (diff)
downloadnixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar.gz
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar.bz2
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar.lz
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar.xz
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.tar.zst
nixpkgs-b74d956ece9628dad174f101f5d2f6b0b4c279e1.zip
Merge pull request #263916 from vs49688/openrussian
openrussian-cli: fix build & misc cleanups
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/openrussian-cli/default.nix59
1 files changed, 0 insertions, 59 deletions
diff --git a/pkgs/misc/openrussian-cli/default.nix b/pkgs/misc/openrussian-cli/default.nix
deleted file mode 100644
index 038bdd5a73f..00000000000
--- a/pkgs/misc/openrussian-cli/default.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{ stdenv, lib, fetchFromGitHub, pkg-config, wget, unzip
-, sqlite, which, lua, installShellFiles, makeWrapper
-}:
-let
-  luaEnv = lua.withPackages(p: with p; [ luasql-sqlite3 luautf8 ]);
-in
-stdenv.mkDerivation rec {
-  pname   = "openrussian-cli";
-  version = "1.0.0";
-
-  src = fetchFromGitHub {
-    owner   = "rhaberkorn";
-    repo    = "openrussian-cli";
-    rev     = version;
-    sha256  = "1ria7s7dpqip2wdwn35wmkry84g8ghdqnxc9cbxzzq63vl6pgvcn";
-  };
-
-  nativeBuildInputs = [
-    pkg-config wget unzip sqlite which installShellFiles makeWrapper
-  ];
-
-  buildInputs = [ luaEnv ];
-
-  makeFlags = [
-    "LUA=${luaEnv}/bin/lua"
-    "LUAC=${luaEnv}/bin/luac"
-  ];
-
-  dontConfigure = true;
-
-  # Can't use "make install" here
-  installPhase = ''
-    runHook preInstall
-
-    mkdir -p $out/bin $out/share/openrussian
-    cp openrussian-sqlite3.db $out/share/openrussian
-    cp openrussian $out/bin
-
-    wrapProgram $out/bin/openrussian \
-      --prefix LUA_PATH ';' '${lua.pkgs.luaLib.genLuaPathAbsStr luaEnv}' \
-      --prefix LUA_CPATH ';' '${lua.pkgs.luaLib.genLuaCPathAbsStr luaEnv}'
-
-    runHook postInstall
-  '';
-
-  postInstall = ''
-    installShellCompletion --cmd openrussian --bash ./openrussian-completion.bash
-    installManPage ./openrussian.1
-  '';
-
-  meta = with lib; {
-    description = "Offline Console Russian Dictionary (based on openrussian.org)";
-    homepage    = "https://github.com/rhaberkorn/openrussian-cli";
-    license     = with licenses; [ gpl3Only mit cc-by-sa-40 ];
-    maintainers = with maintainers; [ zane ];
-    mainProgram = "openrussian";
-    platforms   = platforms.unix;
-  };
-}