mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +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
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, python2Packages }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
version = "2.9.3.1";
|
|
pname = "electrum-dash";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/akhavr/electrum-dash/releases/download/${version}/Electrum-DASH-${version}.tar.gz";
|
|
#"https://github.com/dashpay/electrum-dash/releases/download/v${version}/Electrum-DASH-${version}.tar.gz";
|
|
sha256 = "9b7ac205f63fd4bfb15d77a34a4451ef82caecf096f31048a7603bd276dfc33e";
|
|
};
|
|
|
|
propagatedBuildInputs = with python2Packages; [
|
|
dnspython
|
|
ecdsa
|
|
pbkdf2
|
|
protobuf
|
|
pyasn1
|
|
pyasn1-modules
|
|
pycrypto
|
|
pyqt4
|
|
qrcode
|
|
requests
|
|
pyaes
|
|
tlslite-ng
|
|
x11_hash
|
|
mnemonic
|
|
jsonrpclib
|
|
|
|
# plugins
|
|
trezor
|
|
];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/share
|
|
sed -i 's@usr_share = .*@usr_share = os.getenv("out")+"/share"@' setup.py
|
|
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Electrum DASH";
|
|
homepage = "https://github.com/dashpay/electrum-dash";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ np ];
|
|
knownVulnerabilities = [ "CVE-2018-1000022" ];
|
|
};
|
|
}
|