os/shared/lib.nix

17 lines
405 B
Nix
Raw Permalink Normal View History

2023-05-21 22:26:26 +02:00
{ pkgs, ... }:
with pkgs; rec {
nixGL =
let src = fetchGit { ref = "main"; url = "https://github.com/guibou/nixGL.git"; };
in (import src {}).auto.nixGLDefault;
nixGLWrapper = program: writeShellScriptBin program.pname ''
${nixGL}/bin/nixGL ${program}/bin/${program.pname} "$@"
'';
2023-05-23 09:58:47 +02:00
webApp = name: url: writeShellScriptBin name ''
${chromium}/bin/chromium --app ${url}
'';
2023-05-21 22:26:26 +02:00
}