about summary refs log tree commit diff
path: root/pkgs/by-name/cr
diff options
context:
space:
mode:
authorTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-01-26 15:24:56 +0100
committerTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-01-26 15:34:45 +0100
commite036774553209d2d5d2c7e232fa19e5187da072b (patch)
tree423643f0dfa05b02eb5b3fae7271d90cbc9fd0f5 /pkgs/by-name/cr
parent771b079bb84ac2395f3a24a5663ac8d1495c98d3 (diff)
downloadnixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar.gz
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar.bz2
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar.lz
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar.xz
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.tar.zst
nixlib-e036774553209d2d5d2c7e232fa19e5187da072b.zip
cringify: 0.1.1 -> 0.2.0
Diffstat (limited to 'pkgs/by-name/cr')
-rw-r--r--pkgs/by-name/cr/cringify/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/cr/cringify/package.nix b/pkgs/by-name/cr/cringify/package.nix
new file mode 100644
index 000000000000..f9e4bc2f9050
--- /dev/null
+++ b/pkgs/by-name/cr/cringify/package.nix
@@ -0,0 +1,41 @@
+{ 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 ];
+  };
+}