nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 pkgs,
5}:
6
7stdenv.mkDerivation {
8 version = "0.0.1";
9 pname = "ecdsatool";
10
11 src = pkgs.fetchFromGitHub {
12 owner = "kaniini";
13 repo = "ecdsatool";
14 rev = "7c0b2c51e2e64d1986ab1dc2c57c2d895cc00ed1";
15 sha256 = "08z9309znkhrjpwqd4ygvm7cd1ha1qbrnlzw64fr8704jrmx762k";
16 };
17
18 configurePhase = ''
19 runHook preConfigure
20
21 ./autogen.sh
22 ./configure --prefix=$out
23
24 runHook postConfigure
25 '';
26
27 patches = [
28 ./ctype-header-c99-implicit-function-declaration.patch
29 ./openssl-header-c99-implicit-function-declaration.patch
30 ];
31
32 nativeBuildInputs = with pkgs; [
33 openssl
34 autoconf
35 automake
36 ];
37 buildInputs = with pkgs; [ libuecc ];
38
39 meta = with lib; {
40 description = "Create and manipulate ECC NISTP256 keypairs";
41 mainProgram = "ecdsatool";
42 homepage = "https://github.com/kaniini/ecdsatool/";
43 license = with licenses; [ free ];
44 platforms = platforms.unix;
45 };
46}