mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
32 lines
948 B
Nix
32 lines
948 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, python3, xorg, cmake, libgit2, darwin
|
|
, curl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "amp";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmacdonald";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0l1vpcfq6jrq2dkrmsa4ghwdpp7c54f46gz3n7nk0i41b12hnigw";
|
|
};
|
|
|
|
cargoSha256 = "09v991rl2w4c4jh7ga7q1lk6wyl2vr71j5cpniij8mcvszrz78qf";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config python3 ];
|
|
buildInputs = [ openssl xorg.libxcb libgit2 ] ++ lib.optionals stdenv.isDarwin
|
|
(with darwin.apple_sdk.frameworks; [ curl Security AppKit ]);
|
|
|
|
# Tests need to write to the theme directory in HOME.
|
|
preCheck = "export HOME=`mktemp -d`";
|
|
|
|
meta = with lib; {
|
|
description = "A modern text editor inspired by Vim";
|
|
homepage = "https://amp.rs";
|
|
license = [ licenses.gpl3 ];
|
|
maintainers = [ maintainers.sb0 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|