cargo new rust-static-nix
cd rust-static-nix
cargo build
# create/copy default.nix
nix-build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
let projectroot = "/home/git/"; # where are the repos on the disk? | |
subdir = "private-git"; # url path prefix | |
staticFilesPath = "cgit-static"; # url path to cgit's static assets | |
# /home/git/published-by-cgit contains the list of projects | |
# that cgit will show | |
cgitrc = pkgs.writeText "cgitrc" | |
'' | |
# default paths to static assets | |
css=/${staticFilesPath}/cgit.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# != 2 ]; then | |
echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa" | |
exit 1 | |
fi | |
if ! [ -f $1 ]; then | |
echo "'$1' does not exist" | |
exit 1 | |
fi |
The project is split into several parts:
- The kernel driver, with simple 3D command forwarding and 3D resource allocation
- The userland driver, in fact the OpenGL backend
- The reference, explaining virtio-gpu commands
Suppose you have weird taste and you absolutely want:
- your visual selection to always have a green background and black foreground,
- your active statusline to always have a white background and red foreground,
- your very own deep blue background.