![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
983 B
Nix
39 lines
983 B
Nix
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
|
|
|
buildGoModule rec {
|
|
pname = "dcrd";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "decred";
|
|
repo = "dcrd";
|
|
rev = "refs/tags/release-v${version}";
|
|
hash = "sha256-nSocqwXgJhvfbdElddbb1gGxoygmtVtK6DbiSuMxYew=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "dcrd-appdata-env-variable.patch";
|
|
url = "https://github.com/decred/dcrd/pull/3152/commits/216132d7d852f3f2e2a6bf7f739f47ed62ac9387.patch";
|
|
hash = "sha256-R1GzP0qVP5XW1GnSJqFOpJVnwrVi/62tL1L2mc33+Dw=";
|
|
})
|
|
];
|
|
|
|
vendorHash = "sha256-Napcfj1+KjQ21Jb/qpIzg2W/grzun2Pz5FV5yIBXoTo=";
|
|
|
|
subPackages = [ "." "cmd/promptsecret" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
preCheck = ''
|
|
export DCRD_APPDATA="$TMPDIR"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://decred.org";
|
|
description = "Decred daemon in Go (golang)";
|
|
license = with lib.licenses; [ isc ];
|
|
maintainers = with lib.maintainers; [ juaningan ];
|
|
};
|
|
}
|