+/config

my dotfiles and nix configuration

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

Julia RyanPrepare for new Cortanaeea4f7c

main
945 B37 linesraw
1{ lib, rustPlatform, fetchFromGitHub, pkg-config, bzip2, openssl, zstd }:
2rustPlatform.buildRustPackage rec {
3  pname = "cached-path";
4  version = "0.8.1";
5
6  src = fetchFromGitHub {
7    owner = "epwalsh";
8    repo = "rust-cached-path";
9    rev = "v${version}";
10    hash = "sha256-tva/mBVawV+SfRfvItLB1+EJv+b+DA0UuYerEz/bOGo=";
11  };
12
13  buildFeatures = [ "build-binary" ];
14
15  cargoLock = {
16    lockFile = ./Cargo.lock;
17  };
18
19  postPatch = ''
20    ln -s ${./Cargo.lock} Cargo.lock
21  '';
22
23  nativeBuildInputs = [ pkg-config ];
24  buildInputs = [ bzip2 openssl zstd ];
25  env = {
26    ZSTD_SYS_USE_PKG_CONFIG = true;
27  };
28
29  doCheck = false;
30
31  meta = {
32    description = "Rust utility for accessing both local and remote files through a unified interface";
33    homepage = "https://github.com/epwalsh/rust-cached-path";
34    changelog = "https://github.com/epwalsh/rust-cached-path/blob/${src.rev}/CHANGELOG.md";
35    license = lib.licenses.asl20;
36  };
37}