about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/comments/comments.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/comments/comments.nix')
-rw-r--r--sys/nixpkgs/pkgs/comments/comments.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/comments/comments.nix b/sys/nixpkgs/pkgs/comments/comments.nix
new file mode 100644
index 00000000..a46f1ebe
--- /dev/null
+++ b/sys/nixpkgs/pkgs/comments/comments.nix
@@ -0,0 +1,25 @@
+{
+  lib,
+  rustPlatform,
+  makeWrapper,
+  less,
+  fmt,
+}:
+rustPlatform.buildRustPackage {
+  pname = "comments";
+  version = "0.1.0";
+
+  src = ./.;
+  cargoLock = {
+    lockFile = ./Cargo.lock;
+  };
+
+  nativeBuildInputs = [
+    makeWrapper
+  ];
+
+  postInstall = ''
+    wrapProgram $out/bin/comments \
+      --set PATH ${lib.makeBinPath [less fmt]}
+  '';
+}