From 736d4483985376aac995a5526c6a7f47edea0d2b Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 28 Jan 2024 18:20:47 +0100 Subject: feat(sys/nixpkgs/pkgs/comments): Init This rewrite of the `comments` script even provides nested comments --- sys/nixpkgs/pkgs/comments/comments.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys/nixpkgs/pkgs/comments/comments.nix (limited to 'sys/nixpkgs/pkgs/comments/comments.nix') 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]} + ''; +} -- cgit 1.4.1