diff options
Diffstat (limited to 'pkgs/by-name/ls')
-rw-r--r-- | pkgs/by-name/ls/lsd/package.nix | 58 | ||||
-rw-r--r-- | pkgs/by-name/ls/lshw/package.nix | 1 |
2 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/by-name/ls/lsd/package.nix b/pkgs/by-name/ls/lsd/package.nix new file mode 100644 index 0000000000000..8cdf45c90d5ad --- /dev/null +++ b/pkgs/by-name/ls/lsd/package.nix @@ -0,0 +1,58 @@ +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + installShellFiles, + darwin, + pandoc, + testers, + lsd, +}: + +rustPlatform.buildRustPackage rec { + pname = "lsd"; + version = "1.1.5"; + + src = fetchFromGitHub { + owner = "lsd-rs"; + repo = "lsd"; + rev = "v${version}"; + hash = "sha256-LlMcBMb40yN+rlvGVsh7JaC3j9sF60YxitQQXe1q/oI="; + }; + + cargoHash = "sha256-yyXFtMyiMq6TaN9/7+BaBERHgubeA8SJGOr08Mn3RnY="; + + nativeBuildInputs = [ + installShellFiles + pandoc + ]; + + buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; + + postInstall = '' + pandoc --standalone --to man doc/lsd.md -o lsd.1 + installManPage lsd.1 + + installShellCompletion --cmd lsd \ + --bash $releaseDir/build/lsd-*/out/lsd.bash \ + --fish $releaseDir/build/lsd-*/out/lsd.fish \ + --zsh $releaseDir/build/lsd-*/out/_lsd + ''; + + # Found argument '--test-threads' which wasn't expected, or isn't valid in this context + doCheck = false; + + passthru.tests.version = testers.testVersion { package = lsd; }; + + meta = { + homepage = "https://github.com/lsd-rs/lsd"; + description = "Next gen ls command"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + zowoq + SuperSandro2000 + ]; + mainProgram = "lsd"; + }; +} diff --git a/pkgs/by-name/ls/lshw/package.nix b/pkgs/by-name/ls/lshw/package.nix index 4f0cb5ce3c6b8..f44aa8f7245e0 100644 --- a/pkgs/by-name/ls/lshw/package.nix +++ b/pkgs/by-name/ls/lshw/package.nix @@ -42,6 +42,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with lib; { + changelog = "https://github.com/lyonel/lshw/blob/master/docs/Changelog"; description = "Provide detailed information on the hardware configuration of the machine"; homepage = "https://ezix.org/project/wiki/HardwareLiSter"; license = licenses.gpl2; |