Add proximity-sort
This commit is contained in:
parent
5663448d48
commit
815e771da3
3 changed files with 24 additions and 1 deletions
|
@ -2,4 +2,5 @@
|
|||
|
||||
{
|
||||
cliclick = import ./packages/cliclick.nix { inherit system lib pkgs; };
|
||||
proximity-sort = import ./packages/proximity-sort.nix { inherit system lib pkgs; };
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ pkgs.stdenv.mkDerivation {
|
|||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "BlueM";
|
||||
repo = "cliclick";
|
||||
repo = pname;
|
||||
rev = "79a49ff25f550fda5b2a1806366aa9d7facc46f3";
|
||||
sha256 = "Wj1niLXCwBYTsXB2Qkdvs85BJD7uRqGIerCTjhS20ZQ=";
|
||||
fetchSubmodules = false;
|
||||
|
|
22
packages/proximity-sort.nix
Normal file
22
packages/proximity-sort.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ system, lib, pkgs }:
|
||||
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "proximity-sort";
|
||||
version = "1.0.7";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jonhoo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "ZDG45GETZfkCo6OO5DaN10EviaOf18k71Kw6Ni8ygDQ=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-/FF5CtUdf5uSu9AR9OPRXisYs6PRTwKwGWssxzVpb4g=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple command-line utility for sorting inputs by proximity to a path argument";
|
||||
homepage = "https://github.com/jonhoo/proximity-sort";
|
||||
license = [ licenses.asl20 licenses.mit ];
|
||||
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue