pkgs/mkSymlinks: remove

This commit is contained in:
Infinidoge 2024-07-27 00:12:57 -04:00
parent 0c93e1a60c
commit 02784d760c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 0 additions and 24 deletions

View file

@ -4,7 +4,6 @@
fw-ectool = pkgs.callPackage ./fw-ectool.nix { };
hexagon = pkgs.callPackage ./hexagon.nix { };
mcaselector = pkgs.callPackage ./mcaselector.nix { };
mkSymlinks = pkgs.callPackage ./mk-symlinks.nix { };
neocities = pkgs.callPackage ./neocities { };
nix-modrinth-prefetch = pkgs.callPackage ./nix-modrinth-prefetch.nix { };
olympus = pkgs.callPackage ./olympus.nix { };

View file

@ -1,23 +0,0 @@
{ lib, stdenv }:
{ name, symlinks }:
let
normalized = lib.mapAttrs' (n: v: lib.nameValuePair (lib.path.subpath.normalise n) "${v}") symlinks;
linkCommands = lib.mapAttrsToList
(n: v: ''
mkdir -p $out/$(dirname ${n})
ln -s ${v} $out/${n}
'')
normalized;
in
stdenv.mkDerivation {
name = "firefox";
phases = [ "installPhase" ];
preferLocalBuild = true;
allowSubstitutes = false;
installPhase = ''
mkdir $out
${lib.concatStringsSep "\n" linkCommands}
'';
}