mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, rustPlatform
|
|
, darwin
|
|
, testers
|
|
, komac
|
|
}:
|
|
|
|
let
|
|
version = "2.2.1";
|
|
src = fetchFromGitHub {
|
|
owner = "russellbanks";
|
|
repo = "Komac";
|
|
rev = "v${version}";
|
|
hash = "sha256-dPX8/JUQ+vugd+M/jIjBf4/sNbac0FVQ0obhyAAGI84=";
|
|
};
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit version src;
|
|
|
|
pname = "komac";
|
|
|
|
cargoHash = "sha256-CDPN90X3m/9FRLolAVCIcAuajZbB5OAgLcFXq2ICS8g=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
inherit version;
|
|
|
|
package = komac;
|
|
command = "komac --version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Community Manifest Creator for WinGet";
|
|
homepage = "https://github.com/russellbanks/Komac";
|
|
changelog = "https://github.com/russellbanks/Komac/releases/tag/${src.rev}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ kachick ];
|
|
mainProgram = "komac";
|
|
};
|
|
}
|