mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkgconfig, python3, xorg, cmake, libgit2, darwin
|
|
, curl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "amp";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmacdonald";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0jhxyl27nwp7rp0lc3kic69g8x55d0azrwlwwhz3z74icqa8f03j";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "0rk5c8knx8swqzmj7wd18hq2h5ndkzvcbq4lzggpavkk01a8hlb1";
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
buildInputs = [ openssl python3 xorg.libxcb libgit2 ] ++ stdenv.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 stdenv.lib; {
|
|
description = "A modern text editor inspired by Vim";
|
|
homepage = "https://amp.rs";
|
|
license = [ licenses.gpl3 ];
|
|
maintainers = [ maintainers.sb0 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|