File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1616 config = lib . mkIf cfg . enable {
1717 environment . systemPackages = with pkgs ; [ mdevctl ] ;
1818
19- environment . etc . "mdevctl.d/scripts.d/notifiers/.keep" . text = "" ;
20- environment . etc . "mdevctl.d/scripts.d/callouts/.keep" . text = "" ;
19+ environment . etc . "mdevctl.d/.keep" . text = "" ;
20+ environment . etc . "mdevctl/scripts.d/notifiers/.keep" . text = "" ;
21+ environment . etc . "mdevctl/scripts.d/callouts/.keep" . text = "" ;
2122
2223 } ;
2324}
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ rustPlatform.buildRustPackage rec {
1515 hash = "sha256-4K4NW3DOTtzZJ7Gg0mnRPr88YeqEjTtKX+C4P8i923E=" ;
1616 } ;
1717
18+ # https://github.com/mdevctl/mdevctl/issues/111
19+ patches = [
20+ ./script-dir.patch
21+ ] ;
22+
1823 useFetchCargoVendor = true ;
1924 cargoHash = "sha256-xfrW7WiKBM9Hz49he/42z9gBrwZ3sKGH/u105hcyln0=" ;
2025
Original file line number Diff line number Diff line change 1+ diff --git a/src/environment.rs b/src/environment.rs
2+ index 3db5933..f6da56c 100644
3+ --- a/src/environment.rs
4+ +++ b/src/environment.rs
5+ @@ -35,7 +35,7 @@ pub trait Environment {
6+ }
7+
8+ fn scripts_base(&self) -> PathBuf {
9+ - self.root().join("usr/lib/mdevctl/scripts.d")
10+ + self.root().join("etc/mdevctl/scripts.d")
11+ }
12+
13+ fn callout_dir(&self) -> PathBuf {
You can’t perform that action at this time.
0 commit comments