Skip to content

Commit

Permalink
Merge pull request #245 from nix-community/lightweight-shell
Browse files Browse the repository at this point in the history
Lightweight Shell
  • Loading branch information
nikstur authored Oct 30, 2023
2 parents 29c4865 + 3cb657f commit 9c8d7c5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 42 deletions.
30 changes: 11 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
10 changes: 0 additions & 10 deletions rust/tool/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/tool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"

members = [
"shared",
Expand Down
11 changes: 0 additions & 11 deletions rust/tool/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
3 changes: 1 addition & 2 deletions rust/tool/systemd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lzbt-systemd"
version.workspace = true
version.workspace = true
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -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"

0 comments on commit 9c8d7c5

Please # to comment.