gfWithPackages: init
Some checks failed
Build and populate cache / tests (sydpkgs, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, sydpkgs) (push) Has been cancelled
Some checks failed
Build and populate cache / tests (sydpkgs, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, sydpkgs) (push) Has been cancelled
This commit is contained in:
22
pkgs/gfWithPackages/default.nix
Normal file
22
pkgs/gfWithPackages/default.nix
Normal file
@@ -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}
|
||||
''
|
||||
Reference in New Issue
Block a user