Unverified Commit e0367745 authored by TomaSajt's avatar TomaSajt
Browse files

cringify: 0.1.1 -> 0.2.0

parent 771b079b
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
{ 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";
+0 −2
Original line number Diff line number Diff line
@@ -7285,8 +7285,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 { };