nixpkgs/pkgs/tools/admin/swapspace
Jason Yundt cf5eb4882e swapspace: add passthru.binlore
Consider this Nix expression:

  let
    pkgs = import /path/to/nixpkgs { };
  in

  pkgs.resholve.writeScript "mime-construct-binlore-test" {
    inputs = [ pkgs.swapspace ];
    interpreter = "${pkgs.lib.getExe pkgs.bash}";
  } ''
    swapspace --version
  ''

Before this change, that expression would fail to build because resholve
would think that swapspace might be able to execute its arguments. This
commit fixes that problem.
2024-09-22 14:33:19 -04:00
..
default.nix