nixpkgs/pkgs/by-name/am/amp/package.nix

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

65 lines
1.1 KiB
Nix
Raw Normal View History

2024-09-07 07:19:43 +00:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
python3,
xorg,
cmake,
libgit2,
darwin,
curl,
}:
2019-06-11 11:48:56 +00:00
rustPlatform.buildRustPackage rec {
pname = "amp";
2024-01-24 07:42:28 +00:00
version = "0.7.0";
2019-06-11 11:48:56 +00:00
src = fetchFromGitHub {
owner = "jmacdonald";
2024-09-07 07:36:53 +00:00
repo = "amp";
rev = version;
2024-09-07 07:36:53 +00:00
hash = "sha256-xNadwz2agPbxvgUqrUf1+KsWTmeNh8hJIWcNwTzzM/M=";
2019-06-11 11:48:56 +00:00
};
2024-09-07 07:35:32 +00:00
cargoPatches = [ ./update_time_crate.patch ];
cargoHash = "sha256-EYD1gQgkHemT/3VewdsU5kOGQKY3OjIHRiTSqSRNwtU=";
2019-06-11 11:48:56 +00:00
2024-09-07 07:19:43 +00:00
nativeBuildInputs = [
cmake
pkg-config
python3
];
buildInputs =
[
openssl
xorg.libxcb
libgit2
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
curl
Security
AppKit
]
);
2019-06-11 11:48:56 +00:00
# Tests need to write to the theme directory in HOME.
preCheck = "export HOME=`mktemp -d`";
2024-09-07 07:36:53 +00:00
meta = {
2019-06-11 11:48:56 +00:00
description = "Modern text editor inspired by Vim";
homepage = "https://amp.rs";
2024-09-07 07:36:53 +00:00
license = lib.licenses.gpl3Only;
2024-09-07 07:37:16 +00:00
maintainers = with lib.maintainers; [
sb0
aleksana
];
2023-11-27 01:17:53 +00:00
mainProgram = "amp";
2019-06-11 11:48:56 +00:00
};
}