sha0 hashing c package for converting passwords in softether config
This commit is contained in:
parent
5fff2a6a16
commit
8a1f63b557
4 changed files with 200 additions and 1 deletions
20
sha0/default.nix
Normal file
20
sha0/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, stdenv, ... }:
|
||||
stdenv.mkDerivation {
|
||||
pname = "sha0";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildPhase = ''
|
||||
cc -O2 -o sha0 sha0.c main.c
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp sha0 $out/bin/
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "SHA-0 hashing CLI tool";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue