3
0
Fork 0
forked from mirrors/nixpkgs

gql: init at 0.1.0

https://github.com/AmrDeveloper/GQL
This commit is contained in:
figsoda 2023-06-19 11:38:10 -04:00
parent 1471af0169
commit d739f2a438
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "gql";
version = "0.1.0";
src = fetchFromGitHub {
owner = "AmrDeveloper";
repo = "GQL";
rev = version;
hash = "sha256-UEfluWgoSuPnHGsoPcVLuAqmJsqCJL2B29UsQeZctuE=";
};
cargoHash = "sha256-y49pnx1OkUu7yKnwTGpPGv3ULUPpj/Z4bOPVIO3nS0E=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
env = {
OPENSSL_NO_VENDOR = true;
};
# Cargo.lock is outdated
preConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "A SQL like query language to perform queries on .git files";
homepage = "https://github.com/AmrDeveloper/GQL";
changelog = "https://github.com/AmrDeveloper/GQL/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -8274,6 +8274,8 @@ with pkgs;
gptfdisk = callPackage ../tools/system/gptfdisk { };
gql = callPackage ../applications/version-management/gql { };
grafterm = callPackage ../tools/misc/grafterm { };
gradience = callPackage ../applications/misc/gradience { };