about summary refs log tree commit diff
path: root/pkgs/by-name/se
diff options
context:
space:
mode:
authorNotAShelf <raf@notashelf.dev>2024-06-25 00:33:28 +0300
committerNotAShelf <raf@notashelf.dev>2024-06-25 00:33:28 +0300
commitdc1f289d07fcd55c620aa164e20f7be3d9e89352 (patch)
tree618276b952a50629ca471f70e156e8f5f9689c73 /pkgs/by-name/se
parentcf02fd7eacd7c20d2baa2123af66b317b8333cd2 (diff)
serpl: init at 0.1.26
Diffstat (limited to 'pkgs/by-name/se')
-rw-r--r--pkgs/by-name/se/serpl/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/se/serpl/package.nix b/pkgs/by-name/se/serpl/package.nix
new file mode 100644
index 0000000000000..15d6b6f7caa67
--- /dev/null
+++ b/pkgs/by-name/se/serpl/package.nix
@@ -0,0 +1,41 @@
+{
+  lib,
+  rustPlatform,
+  fetchFromGitHub,
+  gitUpdater,
+  makeWrapper,
+  ripgrep,
+}:
+let
+  pname = "serpl";
+  version = "0.1.26";
+in
+rustPlatform.buildRustPackage {
+  inherit pname version;
+  src = fetchFromGitHub {
+    owner = "yassinebridi";
+    repo = "serpl";
+    rev = version;
+    hash = "sha256-ppF74VI0ceB4G/RLTa1phEy+tQ34r4hOMxqlK7YeLo0=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  cargoHash = "sha256-/TnuRRzeCPp8pqa/soGV0b3ZYp0cCbt3un6SjatSGp0=";
+
+  postFixup = ''
+    # Serpl needs ripgrep to function properly.
+    wrapProgram $out/bin/serpl \
+      --prefix PATH : "${lib.strings.makeBinPath [ ripgrep ]}"
+  '';
+
+  passthru.updateScript = gitUpdater { };
+
+  meta = {
+    description = "Simple terminal UI for search and replace, ala VS Code";
+    homepage = "https://github.com/yassinebridi/serpl.git";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ NotAShelf ];
+    mainProgram = "serpl";
+  };
+}