Merge remote-tracking branch 'cd/master'

This commit is contained in:
makefu 2015-07-24 23:57:12 +02:00
commit f338d3d4d1
6 changed files with 22 additions and 4 deletions

View File

@ -28,6 +28,7 @@ in
gnumake
parallel
Zpkgs.genid
Zpkgs.hashPassword
Zpkgs.lentil
# root

View File

@ -6,6 +6,9 @@ in
pkgs //
{
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 {};
}

View File

@ -0,0 +1,16 @@
{ lib, pkgs, ... }:
pkgs.writeScriptBin "hashPassword" ''
#! /bin/sh
# usage: hashPassword
set -euf
export PATH=${lib.makeSearchPath "bin" (with pkgs; [
coreutils
mkpasswd
openssl
])}
salt=$(openssl rand -base64 16 | tr -d '+=' | head -c 16)
exec mkpasswd -m sha-512 -S "$salt"
''

View File

@ -2,13 +2,11 @@
let
inherit (pkgs) callPackage;
krebs = import ../../Zpkgs/krebs { inherit pkgs; };
in
pkgs //
{
krebs // {
charybdis = callPackage ./charybdis {};
dic = callPackage ./dic.nix {};
genid = callPackage ./genid.nix {};
lentil = callPackage ./lentil {};
much = callPackage ./much.nix {};
viljetic-pages = callPackage ./viljetic-pages {};