summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/default.nix
blob: c8fb1d2d7c238cbaa546877260dcc01fdefb2718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, pkgs, ... }:

let
  inherit (pkgs) callPackage;
in

pkgs //
{
  cac = callPackage ./cac.nix {};
  dic = callPackage ./dic.nix {};
  genid = callPackage ./genid.nix {};
  github-hosts-sync = callPackage ./github-hosts-sync.nix {};
  github-known_hosts = callPackage ./github-known_hosts.nix {};
  hashPassword = callPackage ./hashPassword.nix {};
  nq = callPackage ./nq.nix {};
  posix-array = callPackage ./posix-array.nix {};

  writeC = name: {}: src: pkgs.runCommand name {} ''
    PATH=${lib.makeSearchPath "bin" (with pkgs; [
      binutils
      coreutils
      gcc
    ])}
    in=${pkgs.writeText "${name}.c" src}
    gcc -O -Wall -o $out $in
    strip --strip-unneeded $out
  '';
}