Unverified Commit 0fbb1591 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

lsd: 0.23.1 -> 1.0.0, modernise packages, thin out maintainers

parent fcfa6f73
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -9,23 +9,26 @@

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 ];
  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 +39,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 ];
  };
}