commit
837092a824
1 changed files with 5 additions and 13 deletions
|
@ -2,31 +2,23 @@
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, stdenv
|
, stdenv
|
||||||
, pkg-config
|
|
||||||
, openssl
|
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "dufs";
|
pname = "dufs";
|
||||||
version = "0.35.0";
|
version = "0.36.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sigoden";
|
owner = "sigoden";
|
||||||
repo = pname;
|
repo = "dufs";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-FrLvwXEnNEKi8FvPIs6A52WpSUT+pUCc61JBi9M/PPw=";
|
hash = "sha256-WZ+tyrx4ayFyPmDJq6dGaTRiR6bSQq5k5iOfb+ETe/I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-YHFEjs8a1QJHWYVjAQxmpMIQ2aDbu6mxeuNqcvReYR0=";
|
cargoHash = "sha256-HZiWmqIh21b12DP+hnx1pWBWgSa5j71kp6GCRKGMHv0=";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
pkg-config
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [
|
|
||||||
openssl
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue