diff --git a/pkgs/gfWithPackages/default.nix b/pkgs/gfWithPackages/default.nix new file mode 100644 index 0000000..7bfe5fb --- /dev/null +++ b/pkgs/gfWithPackages/default.nix @@ -0,0 +1,22 @@ +{ lib +, stdenv +, gf-core +, makeWrapper +, runCommandLocal +}: + +packages: + +let + opts = { + passthru = { + preferLocalBuild = true; + inherit (gf-core) version meta; + }; + }; + paths = lib.makeSearchPath "share/gf/lib" packages; +in runCommandLocal "gf-with-rgl" opts '' + . ${makeWrapper}/nix-support/setup-hook + makeWrapper ${gf-core}/bin/gf $out/bin/gf \ + --prefix GF_LIB_PATH : ${paths} +''