diff options
author | Soispha <soispha@vhack.eu> | 2024-01-28 18:20:47 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-28 18:20:47 +0100 |
commit | 736d4483985376aac995a5526c6a7f47edea0d2b (patch) | |
tree | 4cded31bf238042cd0e1777ef9afd50641857136 /sys/nixpkgs/pkgs/comments/comments.nix | |
parent | build(treewide): Update (diff) | |
download | nixos-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.nix | 25 |
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]} + ''; +} |