nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4#include <string.h>
5
6int main(int argc, char** argv)
7{
8 if (argc != 4 || strcmp(argv[1], "-s")) {
9 fputs("Usage: ", stdout);
10 fputs(argv[0], stdout);
11 fputs(" -s TARGET LINK_NAME\n", stdout);
12 exit(EXIT_FAILURE);
13 }
14
15 symlink(argv[2], argv[3]);
16 exit(EXIT_SUCCESS);
17}