-
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.
- Loading branch information
1 parent
8fadc15
commit 471f176
Showing
14 changed files
with
69 additions
and
249 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{ } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import "dev/justfile.default" | ||
|
||
extra_dev_config := justfile_directory() / 'dev-extra-config.nix' |
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
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,13 +1,20 @@ | ||
{ pkgs, playit-agent-source, craneLib, ... }: | ||
{ playit-agent-source, rustPlatform, lib, ... }: | ||
let | ||
toolchain = pkgs.rust-bin.stable.latest.default; | ||
craneLibWithOverride = craneLib.overrideToolchain toolchain; | ||
src = lib.cleanSource playit-agent-source; | ||
cargoLock = "${src}/Cargo.lock"; | ||
cargoToml = lib.importTOML "${src}/Cargo.toml"; | ||
in | ||
craneLibWithOverride.buildPackage { | ||
pname = "playit-cli"; | ||
rustPlatform.buildRustPackage { | ||
pname = "playit-agent"; | ||
meta.mainProgram = "playit-cli"; | ||
src = craneLib.cleanCargoSource playit-agent-source; | ||
inherit (cargoToml.workspace.package) version; | ||
|
||
inherit src; | ||
cargoLock = { | ||
lockFile = cargoLock; | ||
}; | ||
|
||
strictDeps = true; | ||
# Requires internet access | ||
doCheck = false; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ runCommandLocal, simple-http-server, lib, ... }: | ||
runCommandLocal "mock-playit-cli" | ||
{ | ||
meta.mainProgram = "playit-cli"; | ||
} '' | ||
mkdir -p $out/bin | ||
bin=$out/bin/playit-cli | ||
echo "${lib.getExe simple-http-server} --port 9213" >> $bin | ||
chmod +x $bin | ||
'' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.