Commit d08f8d0c authored by Hraban Luyat's avatar Hraban Luyat
Browse files

bat-extras: set pname to executable name

This is the easiest way to make bat-extras scripts runnable directly as flakes,
e.g. nix run nixpkgs#bat-extras.batgrep. There are other ways but this one is
nice and simple.
parent 51a01a7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ let
    name: # the name of the script
    dependencies: # the tools we need to prefix onto PATH
    stdenv.mkDerivation {
      pname = "${core.pname}-${name}";
      pname = name;
      inherit (core) version;

      src = core;