Skip to content

Commit

Permalink
fix(cli): Only compile parsec-cli crate (#96)
Browse files Browse the repository at this point in the history
- The CLI included code compiled with the testbed feature which is
  something you do not want for a production releases.
  • Loading branch information
FirelightFlagboy authored Feb 11, 2025
1 parent 41da201 commit d73b9e7
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions packages/v3/parsec-cli.nix
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 ];
};
}

0 comments on commit d73b9e7

Please sign in to comment.