nixpkgs/pkgs/tools/text/runiq/default.nix
Dominik Xaver Hörl 27e688054e runiq: 2.0.0 -> 2.0.0-unstable-2024-08-19
Build from git to allow compiling with rust 1.80, until there is an upstream release containing a642926f6ec09d4faeebebb563d4aed89e0d36fb.
2024-09-05 10:47:56 +02:00

32 lines
810 B
Nix

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