forked from mirrors/nixpkgs
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
28 lines
924 B
Nix
28 lines
924 B
Nix
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "desync";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "folbricht";
|
|
repo = "desync";
|
|
sha256 = "0j9hixgkja268r2zn2dglrmlrb2z57sgz6q3wqb8dfwpan7b5rsy";
|
|
};
|
|
|
|
vendorSha256 = "1gajh99jb6mbwk93dypddhl7r7n8h2s11s3s82firbrb5k24s4pz";
|
|
|
|
# nix builder doesn't have access to test data; tests fail for reasons unrelated to binary being bad.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Content-addressed binary distribution system";
|
|
longDescription = "An alternate implementation of the casync protocol and storage mechanism with a focus on production-readiness";
|
|
homepage = "https://github.com/folbricht/desync";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix; # *may* work on Windows, but varies between releases.
|
|
maintainers = [ maintainers.chaduffy ];
|
|
};
|
|
}
|