571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
926 B
Nix
48 lines
926 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, expat
|
|
, fontconfig
|
|
, freetype
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cicero-tui";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eyeplum";
|
|
repo = "cicero-tui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2raSkIycXCdT/TSlaQviI6Eql7DONgRVsPP2B2YuW8U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
expat
|
|
fontconfig
|
|
freetype
|
|
];
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"unic-0.9.0" = "sha256-ZE4C+rrtmHdqTmenP5c7QGNTW/n7pi8nh7lqLhHgi3w=";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Unicode tool with a terminal user interface";
|
|
homepage = "https://github.com/eyeplum/cicero-tui";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ shamilton ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "cicero";
|
|
};
|
|
}
|