about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/comments/comments.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-28 18:20:47 +0100
committerSoispha <soispha@vhack.eu>2024-01-28 18:20:47 +0100
commit736d4483985376aac995a5526c6a7f47edea0d2b (patch)
tree4cded31bf238042cd0e1777ef9afd50641857136 /sys/nixpkgs/pkgs/comments/comments.nix
parentbuild(treewide): Update (diff)
downloadnixos-config-736d4483985376aac995a5526c6a7f47edea0d2b.tar.gz
nixos-config-736d4483985376aac995a5526c6a7f47edea0d2b.zip
feat(sys/nixpkgs/pkgs/comments): Init
This rewrite of the `comments` script even provides nested comments
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]}
+  '';
+}