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