Merge pull request #284038 from TomaSajt/cringify

cringify: 0.1.1 -> 0.2.0
This commit is contained in:
Weijia Wang 2024-02-23 06:23:49 +01:00 committed by GitHub
commit 46a66fd4a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View file

@ -1,29 +1,36 @@
{ lib
, rustPlatform
, fetchFromGitHub
, python3
, testers
, cringify
}:
rustPlatform.buildRustPackage rec {
pname = "cringify";
version = "0.1.1";
version = "0.2.0";
src = fetchFromGitHub {
owner = "sansyrox";
repo = "cringify";
rev = "dd753818f8dd4b343be9370d2c29a6be070ad791";
hash = "sha256-6hSgOk9DzDfGtZX1vt6AQsKSLdPdqy2Mz3UtK6d2AuA=";
rev = "857c2620ac9f1f53139d3a599e55679a75e77053";
hash = "sha256-U0tKYFRZToMALSeItn9yia7Dl7omETDTkuRlWJ8EZEo=";
};
cargoHash = "sha256-w6lqPyUCaXZBQ1EmMyj0sVnEHugMD6JugIIK0rEa19Y=";
cargoHash = "sha256-OQXGn6m6VdSlxaCPRonjvEo/GOpsEiZkqL12UdoLu0Q=";
postPatch = ''
# Upstream forgot to update the version value
substituteInPlace src/main.rs --replace '0.1.0' ${version}
# 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";

View file

@ -7254,8 +7254,6 @@ with pkgs;
createrepo_c = callPackage ../tools/package-management/createrepo_c { };
cringify = callPackage ../tools/text/cringify { };
cromfs = callPackage ../tools/archivers/cromfs { };
cron = callPackage ../tools/system/cron { };