diff options
author | AndersonTorres <torres.anderson.85@gmail.com> | 2014-11-30 11:13:47 -0200 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@gmail.com> | 2015-01-02 10:00:32 -0200 |
commit | ac4f15b28274c46a4ed5d6c2e82c94a3decec353 (patch) | |
tree | f28d63a240f42266ea5a245bb2bfaeba5f4fd20a /pkgs/applications/altcoins/namecoind.nix | |
parent | 8281ef1231f96094938f2d056503ec9b4a760456 (diff) | |
download | nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar.gz nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar.bz2 nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar.lz nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar.xz nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.tar.zst nixpkgs-ac4f15b28274c46a4ed5d6c2e82c94a3decec353.zip |
Altcoins - a new category of applications
Here, I present a new level of hierarchy on Nixpkgs: the Altcoins. The idea is to put a single cryptocurrency per file, and build them using expressions like altcoins.bitcoin. I believe this ordering is clearer and more maintainable that the current one.
Diffstat (limited to 'pkgs/applications/altcoins/namecoind.nix')
-rw-r--r-- | pkgs/applications/altcoins/namecoind.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/namecoind.nix b/pkgs/applications/altcoins/namecoind.nix new file mode 100644 index 00000000000..582e5ce960c --- /dev/null +++ b/pkgs/applications/altcoins/namecoind.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, db4, boost, openssl, miniupnpc, unzip }: + +with stdenv.lib; +stdenv.mkDerivation rec { + version = "0.3.76"; + name = "namecoind-${version}"; + + src = fetchurl { + url = "https://github.com/namecoin/namecoin/archive/nc${version}.tar.gz"; + sha256 = "007372j47hb7p89smh3w0p6z70gii9gd4v6agpycqiv4r3n9sv5v"; + }; + + buildInputs = [ db4 boost openssl unzip miniupnpc ]; + + patchPhase = '' + sed -e 's/-Wl,-Bstatic//g' -e 's/-l gthread-2.0//g' -e 's/-l z//g' -i src/Makefile + ''; + + buildPhase = '' + make -C src INCLUDEPATHS= LIBPATHS= + ''; + + installPhase = '' + mkdir -p $out/bin + cp src/namecoind $out/bin + ''; + + meta = { + description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency"; + homepage = http://namecoin.info; + license = licenses.mit; + maintainers = with maintainers; [ doublec AndersonTorres ]; + platforms = platforms.linux; + }; +} |