mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
1016 B
Nix
44 lines
1016 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, git, doxygen, graphviz
|
|
, boost, miniupnpc, openssl, unbound, cppzmq
|
|
, zeromq, pcsclite, readline, libsodium
|
|
}:
|
|
|
|
let
|
|
version = "0.13.0.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "aeon";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aeonix";
|
|
repo = "aeon";
|
|
rev = "v${version}-aeon";
|
|
fetchSubmodules = true;
|
|
sha256 = "07d87n1j4dc9gfwj6xy5jdpryn45095xdh961g6xjnjzc5fivjch";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig git doxygen graphviz ];
|
|
|
|
buildInputs = [
|
|
boost miniupnpc openssl unbound
|
|
cppzmq zeromq pcsclite readline libsodium
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DBUILD_GUI_DEPS=ON"
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
];
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
meta = with lib; {
|
|
description = "Private, secure, untraceable currency";
|
|
homepage = "http://www.aeon.cash/";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.aij ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|