3
.github/workflows/cachix.yml
vendored
3
.github/workflows/cachix.yml
vendored
@@ -11,7 +11,7 @@ on:
|
||||
- README.md
|
||||
|
||||
jobs:
|
||||
cahix:
|
||||
cachix:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -25,6 +25,7 @@ jobs:
|
||||
- shell
|
||||
- stdin
|
||||
- symbols
|
||||
- websearch
|
||||
steps:
|
||||
- uses: easimon/maximize-build-space@v6
|
||||
with:
|
||||
|
@@ -18,9 +18,8 @@
|
||||
cargoToml = builtins.fromTOML (builtins.readFile ../anyrun/Cargo.toml);
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = cargoToml.package.name;
|
||||
pname = "anyrun";
|
||||
#inherit version;
|
||||
pname = cargoToml.package.name;
|
||||
version = cargoToml.package.version;
|
||||
|
||||
src = ../.;
|
||||
|
||||
@@ -34,7 +33,7 @@ in
|
||||
];
|
||||
|
||||
cargoLock = {
|
||||
lockFile = lockFile;
|
||||
inherit lockFile;
|
||||
};
|
||||
|
||||
checkInputs = [cargo rustc];
|
||||
@@ -49,14 +48,17 @@ in
|
||||
|
||||
cargoBuildFlags =
|
||||
if dontBuildPlugins
|
||||
then ["-p ${name}"]
|
||||
then ["-p ${pname}"]
|
||||
else [];
|
||||
|
||||
doCheck = true;
|
||||
CARGO_BUILD_INCREMENTAL = "false";
|
||||
RUST_BACKTRACE = "full";
|
||||
copyLibs = true;
|
||||
buildAndTestSubdir = if dontBuildPlugins then name else null;
|
||||
buildAndTestSubdir =
|
||||
if dontBuildPlugins
|
||||
then pname
|
||||
else null;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/anyrun \
|
||||
|
@@ -16,11 +16,13 @@
|
||||
cargoToml = builtins.fromTOML (builtins.readFile ../../plugins/${name}/Cargo.toml);
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = name;
|
||||
name = cargoToml.package.name;
|
||||
pname = cargoToml.package.name;
|
||||
version = cargoToml.package.version;
|
||||
|
||||
src = "${inputs.self}";
|
||||
cargoLock.lockFile = lockFile;
|
||||
cargoLock = {
|
||||
inherit lockFile;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
|
Reference in New Issue
Block a user