8000 GitHub - eljamm/app-shell: Add specified programs (apps) on PATH.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eljamm/app-shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App shell

Create a temporary shell environment containing specified applications.

Quick start

curl --proto '=https' --tlsv1.2 -sSf \
    -L https://install.determinate.systems/nix \
    | sh -s -- install
  • Install app-shell
  nix profile install github:imincik/app-shell#app-shell
  • Create shell containing QGIS and GDAL apps
app-shell --apps qgis,gdal
  • Add Python with some modules as well
app-shell --apps qgis,gdal,python3 --python-packages python3Packages.numpy,python3Packages.pyproj
  • Finally, launch QGIS on start
app-shell --apps qgis,gdal,python3 --python-packages python3Packages.numpy,python3Packages.pyproj -- qgis
  • Or maybe, compile some software
// test.c

#include <stdio.h>
#include <curl/curl.h>

int main() {
    CURL *curl;

    curl = curl_easy_init();
    if (curl) {
        printf("It works !\n");
    } else {
        printf("libcurl failed to initialize.\n");
    }
    return 0;
}
  app-shell --apps gcc --libs curl --include-libs curl -- gcc test.c -lcurl -o test && ./test

  It works !

Documentation

  • Run app-shell --help to learn more.

app-shell vs. nix-shell

nix-shell was originally designed to provide a debugging environment for Nix derivations. It does a lot of magic and populates the environment with a lot of unnecessary content (packages, shell environment variables and functions).

app-shell is much more simple, cleaner and lighter. It only fetches required packages to the /nix/store and propagates them via relevant environment variables.

About

Add specified programs (apps) on PATH.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 48.5%
  • Shell 47.9%
  • C 3.6%
0