push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
{
lib,
rustPlatform,
fetchCrate,
docutils,
installShellFiles,
udevCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "mdevctl";
version = "1.4.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-Zh+Dj3X87tTpqT/weZMpf7f3obqikjPy9pi50ifp6wQ=";
};
# https://github.com/mdevctl/mdevctl/issues/111
patches = [
./script-dir.patch
];
cargoHash = "sha256-LG5UaSUTF6pVx7BBLiZ/OmAZNCKswFlTqHymg3bDkuc=";
nativeBuildInputs = [
docutils
installShellFiles
udevCheckHook
];
doInstallCheck = true;
postInstall = ''
ln -s mdevctl $out/bin/lsmdev
install -Dm444 60-mdevctl.rules -t $out/lib/udev/rules.d
installManPage $releaseDir/build/mdevctl-*/out/mdevctl.8
ln -s mdevctl.8 $out/share/man/man8/lsmdev.8
installShellCompletion $releaseDir/build/mdevctl-*/out/{lsmdev,mdevctl}.bash
'';
meta = with lib; {
homepage = "https://github.com/mdevctl/mdevctl";
description = "Mediated device management utility for linux";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ edwtjo ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/src/environment.rs b/src/environment.rs
index 3db5933..f6da56c 100644
--- a/src/environment.rs
+++ b/src/environment.rs
@@ -35,7 +35,7 @@ pub trait Environment {
}
fn scripts_base(&self) -> PathBuf {
- self.root().join("usr/lib/mdevctl/scripts.d")
+ self.root().join("etc/mdevctl/scripts.d")
}
fn callout_dir(&self) -> PathBuf {