Merge pull request #284038 from TomaSajt/cringify

cringify: 0.1.1 -> 0.2.0

authored by Weijia Wang and committed by GitHub 46a66fd4 6d3e1b39

+41 -36
+41
pkgs/by-name/cr/cringify/package.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , python3 5 + , testers 6 + , cringify 7 + }: 8 + 9 + rustPlatform.buildRustPackage rec { 10 + pname = "cringify"; 11 + version = "0.2.0"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "sansyrox"; 15 + repo = "cringify"; 16 + rev = "857c2620ac9f1f53139d3a599e55679a75e77053"; 17 + hash = "sha256-U0tKYFRZToMALSeItn9yia7Dl7omETDTkuRlWJ8EZEo="; 18 + }; 19 + 20 + cargoHash = "sha256-OQXGn6m6VdSlxaCPRonjvEo/GOpsEiZkqL12UdoLu0Q="; 21 + 22 + postPatch = '' 23 + # Upstream doesn't set the version string itself 24 + substituteInPlace src/main.rs --replace '0.0.1' ${version} 25 + ''; 26 + 27 + nativeBuildInputs = [ python3 ]; 28 + 29 + # No tests are present in the repository 30 + doCheck = false; 31 + 32 + passthru.tests.version = testers.testVersion { package = cringify; }; 33 + 34 + meta = { 35 + description = "Annoy your friends with the cringified text"; 36 + homepage = "https://github.com/sansyrox/cringify"; 37 + license = lib.licenses.mit; 38 + mainProgram = "cringify"; 39 + maintainers = with lib.maintainers; [ tomasajt ]; 40 + }; 41 + }
-34
pkgs/tools/text/cringify/default.nix
··· 1 - { lib 2 - , rustPlatform 3 - , fetchFromGitHub 4 - }: 5 - 6 - rustPlatform.buildRustPackage rec { 7 - pname = "cringify"; 8 - version = "0.1.1"; 9 - 10 - src = fetchFromGitHub { 11 - owner = "sansyrox"; 12 - repo = "cringify"; 13 - rev = "dd753818f8dd4b343be9370d2c29a6be070ad791"; 14 - hash = "sha256-6hSgOk9DzDfGtZX1vt6AQsKSLdPdqy2Mz3UtK6d2AuA="; 15 - }; 16 - 17 - cargoHash = "sha256-w6lqPyUCaXZBQ1EmMyj0sVnEHugMD6JugIIK0rEa19Y="; 18 - 19 - postPatch = '' 20 - # Upstream forgot to update the version value 21 - substituteInPlace src/main.rs --replace '0.1.0' ${version} 22 - ''; 23 - 24 - # No tests are present in the repository 25 - doCheck = false; 26 - 27 - meta = { 28 - description = "Annoy your friends with the cringified text"; 29 - homepage = "https://github.com/sansyrox/cringify"; 30 - license = lib.licenses.mit; 31 - mainProgram = "cringify"; 32 - maintainers = with lib.maintainers; [ tomasajt ]; 33 - }; 34 - }
-2
pkgs/top-level/all-packages.nix
··· 7254 7254 7255 7255 createrepo_c = callPackage ../tools/package-management/createrepo_c { }; 7256 7256 7257 - cringify = callPackage ../tools/text/cringify { }; 7258 - 7259 7257 cromfs = callPackage ../tools/archivers/cromfs { }; 7260 7258 7261 7259 cron = callPackage ../tools/system/cron { };