mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
43 lines
997 B
Nix
43 lines
997 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
python3,
|
|
testers,
|
|
cringify,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cringify";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sansyrox";
|
|
repo = "cringify";
|
|
rev = "857c2620ac9f1f53139d3a599e55679a75e77053";
|
|
hash = "sha256-U0tKYFRZToMALSeItn9yia7Dl7omETDTkuRlWJ8EZEo=";
|
|
};
|
|
|
|
cargoHash = "sha256-OQXGn6m6VdSlxaCPRonjvEo/GOpsEiZkqL12UdoLu0Q=";
|
|
|
|
postPatch = ''
|
|
# Upstream doesn't set the version string itself
|
|
substituteInPlace src/main.rs --replace '0.0.1' ${version}
|
|
'';
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
# No tests are present in the repository
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion { package = cringify; };
|
|
|
|
meta = {
|
|
description = "Annoy your friends with the cringified text";
|
|
homepage = "https://github.com/sansyrox/cringify";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "cringify";
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
};
|
|
}
|