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