eufon

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

dbus-proxy.nix (653B)


      1 { lua, lgi, buildLuaPackage, fetchFromGitHub }:
      2 let
      3 
      4   simpleName = "dbus_proxy";
      5 
      6 in
      7 # TODO: add busted and checkPhase?
      8 buildLuaPackage rec {
      9   version = "0.10.2";
     10   pname = simpleName; # nixpkgs unstable needs this
     11   name = "${pname}-${version}"; # nixpkgs 21.11 needs this
     12 
     13   src = fetchFromGitHub {
     14     owner = "stefano-m";
     15     repo = "lua-${simpleName}";
     16     rev = "v${version}";
     17     sha256 = "0kl8ff1g1kpmslzzf53cbzfl1bmb5cb91w431hbz0z0vdrramh6l";
     18   };
     19 
     20   propagatedBuildInputs = [ lgi ];
     21 
     22   buildPhase = ":";
     23 
     24   installPhase = ''
     25     mkdir -p "$out/share/lua/${lua.luaversion}"
     26     cp -r src/${pname} "$out/share/lua/${lua.luaversion}/"
     27   '';
     28 
     29 }