diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2023-08-19 18:27:47 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2023-08-19 18:27:47 +0200 |
commit | bbf6d7f2448aebb32731a3d6310a9117f3379f04 (patch) | |
tree | 4db17e730b8a673f59c68013375383d14978b25c /pkgs/tools/text/cringify | |
parent | 424040f7846482b98dfb076a8dce4b952cdbab0a (diff) | |
download | nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar.gz nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar.bz2 nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar.lz nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar.xz nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.tar.zst nixpkgs-bbf6d7f2448aebb32731a3d6310a9117f3379f04.zip |
cringify: init at 0.1.1
Diffstat (limited to 'pkgs/tools/text/cringify')
-rw-r--r-- | pkgs/tools/text/cringify/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/text/cringify/default.nix b/pkgs/tools/text/cringify/default.nix new file mode 100644 index 00000000000..6230f6575c3 --- /dev/null +++ b/pkgs/tools/text/cringify/default.nix @@ -0,0 +1,34 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cringify"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "sansyrox"; + repo = "cringify"; + rev = "dd753818f8dd4b343be9370d2c29a6be070ad791"; + hash = "sha256-6hSgOk9DzDfGtZX1vt6AQsKSLdPdqy2Mz3UtK6d2AuA="; + }; + + cargoHash = "sha256-w6lqPyUCaXZBQ1EmMyj0sVnEHugMD6JugIIK0rEa19Y="; + + postPatch = '' + # Upstream forgot to update the version value + substituteInPlace src/main.rs --replace '0.1.0' ${version} + ''; + + # No tests are present in the repository + doCheck = false; + + 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 ]; + }; +} |