eufon

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

commit 51ca9bd4fca03293b3aba75818f21caa7e805b70
parent 01d702ec2e81227b53dc37575df34f651b6a2a17
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 13 Feb 2022 12:47:40 +0000

hoist fennel and lua dbus-proxy into overlay.nix

updated the shell.nix files in both the programs that use them, so
hopefully this is not too invidious for isolated development

Diffstat:
Dsaturn/dbus-proxy.nix | 29-----------------------------
Msaturn/default.nix | 15++++-----------
Msaturn/shell.nix | 2+-
3 files changed, 5 insertions(+), 41 deletions(-)

diff --git a/saturn/dbus-proxy.nix b/saturn/dbus-proxy.nix @@ -1,29 +0,0 @@ -{ lua, lgi, buildLuaPackage, fetchFromGitHub }: -let - - simpleName = "dbus_proxy"; - -in -# TODO: add busted and checkPhase? -buildLuaPackage rec { - version = "0.10.2"; - pname = simpleName; # nixpkgs unstable needs this - name = "${pname}-${version}"; # nixpkgs 21.11 needs this - - src = fetchFromGitHub { - owner = "stefano-m"; - repo = "lua-${simpleName}"; - rev = "v${version}"; - sha256 = "0kl8ff1g1kpmslzzf53cbzfl1bmb5cb91w431hbz0z0vdrramh6l"; - }; - - propagatedBuildInputs = [ lgi ]; - - buildPhase = ":"; - - installPhase = '' - mkdir -p "$out/share/lua/${lua.luaversion}" - cp -r src/${pname} "$out/share/lua/${lua.luaversion}/" - ''; - -} diff --git a/saturn/default.nix b/saturn/default.nix @@ -1,5 +1,6 @@ { stdenv , callPackage +, fennel , fetchFromGitHub , fetchurl , gobject-introspection @@ -7,20 +8,12 @@ , lib , librsvg , lua53Packages +, luaDbusProxy , lua5_3 , makeWrapper , writeText }: -let fennel = fetchurl { - name = "fennel.lua"; - url = "https://fennel-lang.org/downloads/fennel-1.0.0"; - hash = "sha256:1nha32yilzagfwrs44hc763jgwxd700kaik1is7x7lsjjvkgapw7"; - }; - dbusProxy = callPackage ./dbus-proxy.nix { - inherit (lua53Packages) lgi buildLuaPackage; - lua = lua5_3; - }; - inifile = let lua = lua5_3; in lua53Packages.buildLuaPackage rec { +let inifile = let lua = lua5_3; in lua53Packages.buildLuaPackage rec { pname = "inifile"; name = "${pname}-${version}"; version = "1.0.2"; @@ -38,7 +31,7 @@ let fennel = fetchurl { }; lua = lua5_3.withPackages (ps: with ps; [ - dbusProxy + luaDbusProxy inifile inspect lgi diff --git a/saturn/shell.nix b/saturn/shell.nix @@ -1,4 +1,4 @@ -with import <nixpkgs> {} ; +with import <nixpkgs> { overlays = [ (import ../../overlay.nix) ]; } ; (callPackage ./. { }).overrideAttrs(o: { GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";