+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanPrepare for new Cortanaeea4f7c

main
1.0 KiB44 linesraw
1{ lib, rustPlatform, fetchFromGitHub, pkg-config, libgit2, openssl, zlib, stdenv, darwin }:
2rustPlatform.buildRustPackage rec {
3  pname = "cargotom";
4  version = "0.15.2";
5
6  src = fetchFromGitHub {
7    owner = "frederik-uni";
8    repo = "cargotom";
9    rev = version;
10    hash = "sha256-d8YLQHlvbSqsNPEsWnfxNo+yp6lLRELY/Or3Y/HEA/o=";
11  };
12
13  cargoLock = {
14    lockFile = ./Cargo.lock;
15    outputHashes = {
16      "macros-0.2.0" = "sha256-GrV3KA+Rk62GPPeze/yocnWXRH1rTyK57NSBFFWAJ/s=";
17      "taplo-0.13.2" = "sha256-tNo8RsT2V6TPkJM2xEe+8yqYCdC2AOdJY/AXtD0J2bM=";
18    };
19  };
20
21  nativeBuildInputs = [
22    pkg-config
23  ];
24
25  buildInputs = [
26    libgit2
27    openssl
28    zlib
29  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
30    darwin.apple_sdk.frameworks.CoreServices
31    darwin.apple_sdk.frameworks.Security
32    darwin.apple_sdk.frameworks.SystemConfiguration
33  ];
34
35  env = {
36    OPENSSL_NO_VENDOR = true;
37  };
38
39  meta = {
40    description = "Language server for Cargo.toml";
41    homepage = "https://github.com/frederik-uni/cargotom";
42    broken = true;
43  };
44}