pkgs/mkSymlinks: remove
This commit is contained in:
parent
0c93e1a60c
commit
02784d760c
2 changed files with 0 additions and 24 deletions
|
@ -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 { };
|
||||
|
|
|
@ -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}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue