-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): Only compile
parsec-cli
crate (#96)
- The CLI included code compiled with the testbed feature which is something you do not want for a production releases.
- Loading branch information
1 parent
41da201
commit d73b9e7
Showing
1 changed file
with
36 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,44 @@ | ||
{ pkgs, version, src, rust-toolchain, system, ... }: | ||
{ | ||
pkgs, | ||
version, | ||
src, | ||
rust-toolchain, | ||
system, | ||
... | ||
}: | ||
|
||
(pkgs.makeRustPlatform { | ||
cargo = rust-toolchain; | ||
rustc = rust-toolchain; | ||
}).buildRustPackage { | ||
inherit version src; | ||
pname = "parsec-cli"; | ||
}).buildRustPackage | ||
{ | ||
inherit version src; | ||
pname = "parsec-cli"; | ||
|
||
cargoLock.lockFile = src + "/Cargo.lock"; | ||
cargoLock.lockFile = src + "/Cargo.lock"; | ||
|
||
nativeBuildInputs = [ pkgs.pkg-config ]; | ||
buildInputs = [ | ||
pkgs.openssl.dev | ||
pkgs.sqlite.dev | ||
pkgs.dbus.dev | ||
pkgs.fuse3.dev | ||
]; | ||
nativeBuildInputs = [ pkgs.pkg-config ]; | ||
buildInputs = [ | ||
pkgs.openssl.dev | ||
pkgs.sqlite.dev | ||
pkgs.dbus.dev | ||
pkgs.fuse3.dev | ||
]; | ||
|
||
# Require running the `testbed` server to run the tests (+ access to `parsec-cli`). | ||
doCheck = false; | ||
buildAndTestSubdir = "cli"; | ||
# Require running the `testbed` server to run the tests (+ access to `parsec-cli`). | ||
doCheck = false; | ||
|
||
meta = let inherit (pkgs.lib) majorMinor licenses; in { | ||
homepage = "https://parsec.cloud/"; | ||
description = "Parsec CLI"; | ||
branch = "releases/${majorMinor version}"; | ||
license = [ licenses.bsl11 ]; | ||
changelog = "https://github.com/Scille/parsec-cloud/tree/v${version}/HISTORY.rst"; | ||
platforms = [ system ]; | ||
}; | ||
} | ||
meta = | ||
let | ||
inherit (pkgs.lib) majorMinor licenses; | ||
in | ||
{ | ||
homepage = "https://parsec.cloud/"; | ||
description = "Parsec CLI"; | ||
branch = "releases/${majorMinor version}"; | ||
license = [ licenses.bsl11 ]; | ||
changelog = "https://github.com/Scille/parsec-cloud/tree/v${version}/HISTORY.rst"; | ||
platforms = [ system ]; | ||
}; | ||
} |