mirror of
https://github.com/msfjarvis/custom-nixpkgs.git
synced 2024-06-03 03:58:55 +05:30
44 lines
1011 B
Nix
44 lines
1011 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
darwin,
|
|
makeRustPlatform,
|
|
fromManifestFile,
|
|
fetchFromGitHub,
|
|
rust-manifest,
|
|
}: let
|
|
toolchain = (fromManifestFile rust-manifest).minimalToolchain;
|
|
in
|
|
(makeRustPlatform {
|
|
cargo = toolchain;
|
|
rustc = toolchain;
|
|
})
|
|
.buildRustPackage rec {
|
|
pname = "linkleaner";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msfjarvis";
|
|
repo = "linkleaner";
|
|
rev = "v${version}";
|
|
hash = "sha256-V047zHnvPm40KEYustRcbkSegFlUdcRucP/Hp2Niitw=";
|
|
};
|
|
|
|
buildInputs =
|
|
lib.optionals stdenv.isDarwin
|
|
[darwin.apple_sdk.frameworks.Security];
|
|
|
|
cargoHash = "sha256-o9ERriufop5PWrlZH9WQArG5I33O8MsSkWoKCf2CYn8=";
|
|
|
|
useNextest = true;
|
|
|
|
meta = with lib; {
|
|
description = "A Telegram bot with an identity crisis";
|
|
homepage = "https://msfjarvis.dev/g/linkleaner/";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [msfjarvis];
|
|
mainProgram = "linkleaner";
|
|
};
|
|
}
|