Revert "Revert "Fix mkTf2Config derivation names ending with a dash -""

This reverts commit 98673e8d34.
This commit is contained in:
2025-10-30 14:44:23 -06:00
parent 98673e8d34
commit 8423bbf30f
4 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{ stdenv, lib }:
{ pname
, version ? ""
, version ? null
, custom ? []
, cfg ? []
, maps ? []
@@ -47,6 +47,7 @@ let
"env"
];
in stdenv.mkDerivation ({
inherit name;
inherit pname version;
# Adapted from stdenv's _defaultUnpack().
unpackCmd = ''

View File

@@ -5,7 +5,7 @@
pname = "deerhud";
custom = [
(fetchFromGitHub {
name = "deerhud";
name = "deerhud-src";
owner = "DeerUwU";
repo = "deerhud-tf2";
rev = "78a24effbc66bc78b4bb557228eaa0195db3270c";

View File

@@ -5,7 +5,7 @@ builtins.mapAttrs
pname = name;
custom = [
(fetchFromGitHub (builtins.removeAttrs e.src ["__type"] // {
inherit name;
name = "${name}-src";
}))
];
meta = {

View File

@@ -6,6 +6,7 @@ builtins.mapAttrs
env.description = e.description;
maps = [
(fetchurl {
name = "${name}-src";
inherit (e.src) url hash;
})
];