mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #251831 from SuperSandro2000/lsd
lsd: 0.23.1 -> 1.0.0, modernise packages, thin out maintainers
This commit is contained in:
commit
b8856794a4
1 changed files with 17 additions and 9 deletions
|
@ -1,7 +1,9 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, installShellFiles
|
||||
, darwin
|
||||
, pandoc
|
||||
, testers
|
||||
, lsd
|
||||
|
@ -9,23 +11,29 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "lsd";
|
||||
version = "0.23.1";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Peltoche";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-FY1odcKBl7zJ+MxfohkmC1e45fPQK3MKB3orQdCRpA4=";
|
||||
owner = "lsd-rs";
|
||||
repo = "lsd";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-syT+1LNdigUWkfJ/wkbY/kny2uW6qfpl7KmW1FjZKR8=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-t7J7hIbLlRq99Yd2/3Zn+PbHhJtaJRdDluDXN0Hp/Jc=";
|
||||
cargoHash = "sha256-viLr76Bq9OkPMp+BoprQusMDgx59nbevVi4uxjZ+eZg=";
|
||||
|
||||
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 $releaseDir/build/lsd-*/out/{_lsd,lsd.{bash,fish}}
|
||||
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
|
||||
|
@ -36,9 +44,9 @@ rustPlatform.buildRustPackage rec {
|
|||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Peltoche/lsd";
|
||||
homepage = "https://github.com/lsd-rs/lsd";
|
||||
description = "The next gen ls command";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ Br1ght0ne marsam zowoq SuperSandro2000 ];
|
||||
maintainers = with maintainers; [ marsam zowoq SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue