nixpkgs/pkgs/development/tools/toluapp/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

32 lines
803 B
Nix

{ stdenv, fetchFromGitHub, sconsPackages, lua }:
stdenv.mkDerivation rec {
version = "1.0.93";
pname = "toluapp";
src = fetchFromGitHub {
owner = "LuaDist";
repo = "toluapp";
rev = "${version}";
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
};
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
buildInputs = [ lua ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];
preConfigure = ''
substituteInPlace config_posix.py \
--replace /usr/local $out
'';
meta = with stdenv.lib; {
description = "A tool to integrate C/Cpp code with Lua";
homepage = http://www.codenix.com/~tolua/;
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
platforms = with platforms; unix;
};
}