mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
46 lines
920 B
Nix
46 lines
920 B
Nix
{ fetchFromGitHub
|
|
, glib
|
|
, gtk3
|
|
, lib
|
|
, rustPlatform
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fitnesstrax";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "luminescent-dreams";
|
|
repo = "fitnesstrax";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "1k6zhnbs0ggx7q0ig2abcnzprsgrychlpvsh6d36dw6mr8zpfkp7";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
glib
|
|
gtk3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
];
|
|
|
|
cargoSha256 = "0dlnlb3hqyh98y916wvdb4rd20az73brs8hqna2lgr7kv1pd77j7";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/glib-2.0/schemas
|
|
cp -r $src/share/* $out/share/
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Privacy-first fitness tracking";
|
|
homepage = "https://github.com/luminescent-dreams/fitnesstrax";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ savannidgerinel ];
|
|
};
|
|
}
|