Merge pull request #245 from nix-community/lightweight-shell
Lightweight Shell
This commit is contained in:
commit
9c8d7c56b3
26
flake.nix
26
flake.nix
|
@ -228,31 +228,23 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
shellHook =
|
shellHook = ''
|
||||||
let
|
|
||||||
systemdUkify = pkgs.systemdMinimal.override {
|
|
||||||
withEfi = true;
|
|
||||||
withBootloader = true;
|
|
||||||
withUkify = true;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
''
|
|
||||||
${config.pre-commit.installationScript}
|
${config.pre-commit.installationScript}
|
||||||
export PATH=$PATH:${systemdUkify}/lib/systemd
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.uefi-run
|
|
||||||
pkgs.openssl
|
|
||||||
(pkgs.sbctl.override { databasePath = "pki"; })
|
|
||||||
pkgs.sbsigntool
|
|
||||||
pkgs.efitools
|
|
||||||
pkgs.python39Packages.ovmfvartool
|
|
||||||
pkgs.qemu
|
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
pkgs.statix
|
pkgs.statix
|
||||||
pkgs.cargo-release
|
pkgs.cargo-release
|
||||||
pkgs.cargo-machete
|
pkgs.cargo-machete
|
||||||
|
|
||||||
|
# Convenience for test fixtures in nix/tests.
|
||||||
|
pkgs.openssl
|
||||||
|
(pkgs.sbctl.override { databasePath = "pki"; })
|
||||||
|
|
||||||
|
# Needed for `cargo test` in rust/tool. We also need
|
||||||
|
# TEST_SYSTEMD below for that.
|
||||||
|
pkgs.sbsigntool
|
||||||
];
|
];
|
||||||
|
|
||||||
inputsFrom = [
|
inputsFrom = [
|
||||||
|
|
|
@ -444,21 +444,12 @@ name = "lanzaboote_tool"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"assert_cmd",
|
|
||||||
"bootspec",
|
"bootspec",
|
||||||
"clap",
|
|
||||||
"expect-test",
|
|
||||||
"fastrand",
|
"fastrand",
|
||||||
"filetime",
|
|
||||||
"goblin",
|
"goblin",
|
||||||
"indoc",
|
|
||||||
"log",
|
"log",
|
||||||
"nix",
|
|
||||||
"rand",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"stderrlog",
|
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"time",
|
"time",
|
||||||
"walkdir",
|
"walkdir",
|
||||||
|
@ -498,7 +489,6 @@ dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"nix",
|
"nix",
|
||||||
"rand",
|
"rand",
|
||||||
"serde",
|
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"stderrlog",
|
"stderrlog",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
members = [
|
members = [
|
||||||
"shared",
|
"shared",
|
||||||
|
|
|
@ -7,10 +7,7 @@ edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
clap = { version = "4.4", features = ["derive"] }
|
|
||||||
goblin = "0.7"
|
goblin = "0.7"
|
||||||
nix = { version = "0.27", default-features = false, features = [ "fs" ] }
|
|
||||||
serde = { version = "1", features = ["derive"] }
|
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
tempfile = "3.8.1"
|
tempfile = "3.8.1"
|
||||||
bootspec = "1"
|
bootspec = "1"
|
||||||
|
@ -21,11 +18,3 @@ sha2 = "0.10"
|
||||||
# different versions.
|
# different versions.
|
||||||
fastrand = "2.0.1"
|
fastrand = "2.0.1"
|
||||||
log = { version = "0.4", features = ["std"] }
|
log = { version = "0.4", features = ["std"] }
|
||||||
stderrlog = "0.5"
|
|
||||||
indoc = "2"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
assert_cmd = "2.0.12"
|
|
||||||
expect-test = "1.4.1"
|
|
||||||
filetime = "0.2.22"
|
|
||||||
rand = "0.8.5"
|
|
||||||
|
|
|
@ -24,5 +24,4 @@ expect-test = "1.4.1"
|
||||||
filetime = "0.2.22"
|
filetime = "0.2.22"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
goblin = "0.7.1"
|
goblin = "0.7.1"
|
||||||
serde = { version = "1.0.190", features = ["derive"] }
|
|
||||||
walkdir = "2.4.0"
|
walkdir = "2.4.0"
|
||||||
|
|
Loading…
Reference in New Issue