diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-15 20:00:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 20:00:44 +0100 |
commit | a31cb9033e20a048e816e6e864dab23474b0f893 (patch) | |
tree | fa75764a2f392d2d792e7be5abc2ae8e92d5dd29 /pkgs/misc | |
parent | 93810bccc83d7596695c917c494729e3fb669906 (diff) | |
parent | 3c7e3a328ca8d537af1327e2b14db85e22a5b0eb (diff) | |
download | nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar.gz nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar.bz2 nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar.lz nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar.xz nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.tar.zst nixpkgs-a31cb9033e20a048e816e6e864dab23474b0f893.zip |
Merge pull request #161396 from vs49688/orfix
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/openrussian-cli/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/misc/openrussian-cli/default.nix b/pkgs/misc/openrussian-cli/default.nix index 24c0b6bece7..4f30fd91896 100644 --- a/pkgs/misc/openrussian-cli/default.nix +++ b/pkgs/misc/openrussian-cli/default.nix @@ -1,6 +1,9 @@ { stdenv, lib, fetchFromGitHub, gnumake, pkg-config, wget, unzip, gawk -, sqlite, which, luaPackages, installShellFiles, makeWrapper +, 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"; @@ -16,11 +19,11 @@ stdenv.mkDerivation rec { gnumake pkg-config wget unzip gawk sqlite which installShellFiles makeWrapper ]; - buildInputs = with luaPackages; [ lua luasql-sqlite3 luautf8 ]; + buildInputs = [ luaEnv ]; makeFlags = [ - "LUA=${luaPackages.lua}/bin/lua" - "LUAC=${luaPackages.lua}/bin/luac" + "LUA=${luaEnv}/bin/lua" + "LUAC=${luaEnv}/bin/luac" ]; dontConfigure = true; @@ -34,8 +37,8 @@ stdenv.mkDerivation rec { cp openrussian $out/bin wrapProgram $out/bin/openrussian \ - --prefix LUA_PATH ';' "$LUA_PATH" \ - --prefix LUA_CPATH ';' "$LUA_CPATH" + --prefix LUA_PATH ';' '${lua.pkgs.lib.genLuaPathAbsStr luaEnv}' \ + --prefix LUA_CPATH ';' '${lua.pkgs.lib.genLuaCPathAbsStr luaEnv}' runHook postInstall ''; |