mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #301442 from Sigmanificient/mini-calc
mini-calc: init at 2.12.2
This commit is contained in:
commit
ad6579ebb5
30
pkgs/by-name/mi/mini-calc/package.nix
Normal file
30
pkgs/by-name/mi/mini-calc/package.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib, rustPlatform, fetchpatch, fetchFromGitHub }:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mini-calc";
|
||||
version = "2.12.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coco33920";
|
||||
repo = "calc";
|
||||
rev = version;
|
||||
hash = "sha256-MKMZVRjqwNQUNkuduvgVvsp53E48JPI68Lq/6ooLcFc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-A9t7i9mw4dzCWUAObZ81BSorCrzx6wEjYXiRWIBzM9M=";
|
||||
cargoPatches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/coco33920/calc/commit/0bd12cbf3e13e447725e22cc70df72e559d21c94.patch";
|
||||
sha256 = "sha256-1QN18LQFh8orh9DvgLBGAHimW/b/8HxbwtVD9s7mQaI=";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A fully-featured minimalistic configurable calculator written in Rust";
|
||||
changelog = "https://github.com/coco33920/calc/blob/${version}/CHANGELOG.md";
|
||||
homepage = "https://calc.nwa2coco.fr";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
mainProgram = "mini-calc";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user