Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "coloursum"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "ticky"; 9 repo = "coloursum"; 10 rev = "v${version}"; 11 sha256 = "1piz0l7qdcvjzfykm6rzqc8s1daxp3cj3923v9cmm41bc2v0p5q0"; 12 }; 13 14 cargoSha256 = "08l01ivmln9gwabwa1p0gk454qyxlcpnlxx840vys476f4pw7vvf"; 15 16 buildInputs = lib.optional stdenv.isDarwin Security; 17 18 meta = with lib; { 19 description = "Colourise your checksum output"; 20 homepage = "https://github.com/ticky/coloursum"; 21 license = licenses.mit; 22 maintainers = with maintainers; [ fgaz ]; 23 }; 24}