Unverified Commit e51ce7cd authored by Bruno Bigras's avatar Bruno Bigras Committed by GitHub
Browse files

Merge pull request #283578 from hraban/bat-extras-pname

bat-extras: set pname to executable name
parents 5586a714 6b6dd450
Loading
Loading
Loading
Loading
+4 −2
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;
@@ -133,7 +133,9 @@ let
      # We already patched
      dontPatchShebangs = true;

      inherit (core) meta;
      meta = core.meta // {
        mainProgram = name;
      };
    };
  optionalDep = cond: dep:
    assert cond -> dep != null;