fh: init at 0.1.1

https://github.com/DeterminateSystems/fh
This commit is contained in:
figsoda 2023-09-01 12:07:37 -04:00 committed by Anderson Torres
parent 48da6eb9c1
commit da2da3adce
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
, gcc
, libcxx
}:
rustPlatform.buildRustPackage rec {
pname = "fh";
version = "0.1.1";
src = fetchFromGitHub {
owner = "DeterminateSystems";
repo = "fh";
rev = "v${version}";
hash = "sha256-lTm4C06FtlaIJyhqZ4POubiR4qc0fPHawLS4cpneACg=";
};
cargoHash = "sha256-CvuQeS+g9bdpYzop63BL0UKQsdOELGt1tR2Xz4FLxpE=";
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
gcc.cc.lib
];
env = lib.optionalAttrs stdenv.isDarwin {
NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1";
};
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "The official FlakeHub CLI";
homepage = "https://github.com/DeterminateSystems/fh";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "fh";
};
}

View File

@ -658,6 +658,8 @@ with pkgs;
femtolisp = callPackage ../development/interpreters/femtolisp { };
fh = callPackage ../tools/nix/fh { };
figma-agent = callPackage ../applications/graphics/figma-agent { };
figma-linux = callPackage ../applications/graphics/figma-linux { };