27e688054e
Build from git to allow compiling with rust 1.80, until there is an upstream release containing a642926f6ec09d4faeebebb563d4aed89e0d36fb.
32 lines
810 B
Nix
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 ];
|
|
};
|
|
}
|