2024-09-19 14:19:46 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "runiq";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.0.0-unstable-2024-08-19";
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "whitfin";
|
|
|
|
repo = "runiq";
|
|
|
|
rev = "a642926f6ec09d4faeebebb563d4aed89e0d36fb";
|
|
|
|
hash = "sha256-DWP0kbTjXlyUI/+bHgom9/XJ2XW/BJEU4xvIisPVug0=";
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-01-13 08:15:51 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Efficient way to filter duplicate lines from input, à la uniq";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "runiq";
|
2021-08-27 14:25:00 +00:00
|
|
|
homepage = "https://github.com/whitfin/runiq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|