2024-08-30 07:49:36 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
2021-08-25 21:12:29 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "runiq";
|
2024-08-30 07:49:36 +00:00
|
|
|
version = "2.0.0-unstable-2024-08-19";
|
2021-08-25 21:12:29 +00:00
|
|
|
|
2024-08-30 07:49:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "whitfin";
|
|
|
|
repo = "runiq";
|
|
|
|
rev = "a642926f6ec09d4faeebebb563d4aed89e0d36fb";
|
|
|
|
hash = "sha256-DWP0kbTjXlyUI/+bHgom9/XJ2XW/BJEU4xvIisPVug0=";
|
2021-08-25 21:12:29 +00:00
|
|
|
};
|
|
|
|
|
2024-08-30 07:49:36 +00:00
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
2021-08-25 21:12:29 +00:00
|
|
|
|
2024-01-08 07:39:52 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
2021-08-25 21:12:29 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient way to filter duplicate lines from input, à la uniq";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "runiq";
|
2021-08-25 21:12:29 +00:00
|
|
|
homepage = "https://github.com/whitfin/runiq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|