Fix mkTf2Config derivation names ending with a dash -

Also changed some of the source derivation names to keep our sanity
This commit is contained in:
Shelvacu
2025-06-29 19:16:52 -07:00
committed by Shelvacu on fw
parent 1b2a146025
commit 61c63737af
4 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{ stdenv, lib }: { stdenv, lib }:
{ pname { pname
, version ? "" , version ? null
, custom ? [] , custom ? []
, cfg ? [] , cfg ? []
, maps ? [] , maps ? []
@@ -35,6 +35,7 @@ let
then { src = builtins.head allSrcs; } then { src = builtins.head allSrcs; }
else { srcs = allSrcs; sourceRoot = "."; }; else { srcs = allSrcs; sourceRoot = "."; };
in stdenv.mkDerivation ({ in stdenv.mkDerivation ({
inherit name;
inherit pname version; inherit pname version;
# Adapted from stdenv's _defaultUnpack(). # Adapted from stdenv's _defaultUnpack().
unpackCmd = '' unpackCmd = ''

View File

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

View File

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

View File

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