eufon

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

default.nix (917B)


      1 { stdenv
      2 , callPackage
      3 , fetchFromGitHub
      4 , fetchurl
      5 , gobject-introspection
      6 , gtk3
      7 , gtk-layer-shell
      8 , lib
      9 , librsvg
     10 , lua53Packages
     11 , lua5_3
     12 , makeWrapper
     13 , writeText
     14 }:
     15 let fennel = fetchurl {
     16       name = "fennel.lua";
     17       url = "https://fennel-lang.org/downloads/fennel-1.0.0";
     18       hash = "sha256:1nha32yilzagfwrs44hc763jgwxd700kaik1is7x7lsjjvkgapw7";
     19     };
     20     dbusProxy = callPackage ./dbus-proxy.nix {
     21       inherit (lua53Packages) lgi buildLuaPackage;
     22       lua = lua5_3;
     23     };
     24 
     25     lua = lua5_3.withPackages (ps: with ps; [
     26       dbusProxy
     27       inspect
     28       lgi
     29       luafilesystem
     30       luaposix
     31       readline
     32     ]);
     33 in stdenv.mkDerivation {
     34   pname = "crier";
     35   version = "0.1";
     36   src =./.;
     37   inherit fennel;
     38 
     39   buildInputs = [
     40     gobject-introspection.dev
     41     gtk-layer-shell
     42     gtk3
     43     lua
     44   ];
     45   nativeBuildInputs = [ lua makeWrapper ];
     46 
     47   makeFlags = [ "PREFIX=${placeholder "out"}" ];
     48 
     49 }