nixpkgs/pkgs/by-name/ru/runiq/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
823 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
2021-08-25 21:12:29 +00:00
rustPlatform.buildRustPackage rec {
pname = "runiq";
version = "2.0.0-unstable-2024-08-19";
2021-08-25 21:12:29 +00:00
src = fetchFromGitHub {
owner = "whitfin";
repo = "runiq";
rev = "a642926f6ec09d4faeebebb563d4aed89e0d36fb";
hash = "sha256-DWP0kbTjXlyUI/+bHgom9/XJ2XW/BJEU4xvIisPVug0=";
2021-08-25 21:12:29 +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";
mainProgram = "runiq";
2021-08-25 21:12:29 +00:00
homepage = "https://github.com/whitfin/runiq";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}