export gsf package and hardware.gsf nixos module
Tests / test_core_function (push) Failing after 12s
Tests / test_core_function (push) Failing after 12s
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
src ? ../.,
|
||||
}:
|
||||
let
|
||||
daemonToml = builtins.fromTOML (builtins.readFile (src + "/daemon/Cargo.toml"));
|
||||
in
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "gsf-tools";
|
||||
version = daemonToml.package.version;
|
||||
|
||||
inherit src;
|
||||
cargoLock.lockFile = src + "/Cargo.lock";
|
||||
|
||||
cargoBuildFlags = ["-p" "gsf-cli" "-p" "gsf-daemon"];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp target/release/gsf $out/bin/
|
||||
cp target/release/gsfd $out/bin/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "gotta-scroll-fast tools (gsf + gsfd)";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user