mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
parent
48da6eb9c1
commit
da2da3adce
48
pkgs/tools/nix/fh/default.nix
Normal file
48
pkgs/tools/nix/fh/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user