mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
33 lines
872 B
Nix
33 lines
872 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
|
|
# Darwin
|
|
libiconv, CoreFoundation, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "sit-${version}";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sit-fyi";
|
|
repo = "sit";
|
|
rev = "v${version}";
|
|
sha256 = "10ycs6vc7mfzxnxrki09xn974pcwh196h1pfnsds98x6r87hxkpn";
|
|
};
|
|
|
|
buildInputs = [ cmake libzip gnupg ] ++
|
|
(if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
cargoSha256 = "0kijx7s7zh6yisrsjz213h9x5jx43ixr44vy5rb3wwbn9dgsr528";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Serverless Information Tracker";
|
|
homepage = https://sit.fyi/;
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ dywedir yrashk ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|