diff options
author | SnIcK <ido.samuelson@gmail.com> | 2023-01-19 11:59:35 -0600 |
---|---|---|
committer | SnIcK <ido.samuelson@gmail.com> | 2023-01-23 09:24:40 -0600 |
commit | 1a6ed8a339697352bbf7c974a9b2c89051a82545 (patch) | |
tree | 74148d189656ae1792d53eb47853c252f73254c1 /pkgs/os-specific/linux/fxload | |
parent | 00ae4c7fc46ac0fc0bd3ee9faa76e6e67d1c981c (diff) | |
download | nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar.gz nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar.bz2 nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar.lz nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar.xz nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.tar.zst nixpkgs-1a6ed8a339697352bbf7c974a9b2c89051a82545.zip |
create $out/sbin symlink to $out/bin
looks like common practice is to put a $out/sbin symlink to $out/bin. the `fxload` command was not available if only puts on $out/sbin. This will fix it. The real issue I observed was that there was no `/run/current-system/sw/sbin` on $PATH but i think there is a fundamental reason why it doesn’t exist hence this patch until i learn more.
Diffstat (limited to 'pkgs/os-specific/linux/fxload')
-rw-r--r-- | pkgs/os-specific/linux/fxload/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/fxload/default.nix b/pkgs/os-specific/linux/fxload/default.nix index 3c5443f3432..e8b9d0648bd 100644 --- a/pkgs/os-specific/linux/fxload/default.nix +++ b/pkgs/os-specific/linux/fxload/default.nix @@ -15,8 +15,8 @@ stdenv.mkDerivation rec { # fxload binary exist inside the `examples/bin` directory of `libusb1` postFixup = '' - mkdir -p $out/sbin - ln -s ${passthru.libusb}/examples/bin/fxload $out/sbin/fxload + mkdir -p $out/bin + ln -s ${passthru.libusb}/examples/bin/fxload $out/bin/fxload ''; passthru.libusb = libusb1.override { withExamples = true; }; |