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/dogecoin.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/dogecoin.nix')
-rw-r--r-- | pkgs/applications/altcoins/dogecoin.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/dogecoin.nix b/pkgs/applications/altcoins/dogecoin.nix new file mode 100644 index 00000000000..2d1c3aedc25 --- /dev/null +++ b/pkgs/applications/altcoins/dogecoin.nix @@ -0,0 +1,47 @@ +{ stdenv , fetchurl +, pkgconfig, autoreconfHook +, db5, openssl, boost, zlib, miniupnpc +, glib, protobuf, utillinux, qt4, qrencode +, withGui }: + +with stdenv.lib; +stdenv.mkDerivation rec { + + name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version; + version = "1.8.0"; + + src = fetchurl { + url = "https://github.com/dogecoin/dogecoin/archive/v${version}.tar.gz"; + sha256 = "8a33958c04213cd621aa3c86910477813af22512f03b47c98995d20d31f3f935"; + }; + + buildInputs = [ autoreconfHook pkgconfig openssl + db5 openssl utillinux protobuf boost zlib miniupnpc ] + ++ optionals withGui [ qt4 qrencode ]; + + # BSD DB5 location + patchPhase = '' + sed -i \ + -e 's,BDB_CPPFLAGS=$,BDB_CPPFLAGS="-I${db5}/include",g' \ + -e 's,BDB_LIBS=$,BDB_LIBS="-L${db5}/lib",g' \ + -e 's,bdbdirlist=$,bdbdirlist="${db5}/include",g' \ + src/m4/dogecoin_find_bdb51.m4 + ''; + + configureFlags = [ "--with-incompatible-bdb" + "--with-boost-libdir=${boost.lib}/lib" ] + ++ optionals withGui [ "--with-gui" ]; + + meta = { + description = "Wow, such coin, much shiba, very rich"; + longDescription = '' + Dogecoin is a decentralized, peer-to-peer digital currency that + enables you to easily send money online. Think of it as "the + internet currency." + It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog. + ''; + homepage = http://www.dogecoin.com/; + license = licenses.mit; + maintainers = with maintainers; [ edwtjo offline AndersonTorres ]; + }; +} |