Merge pull request #212336 from nixpkgs-architecture/some-nix-file-deps

{documentation-highlighter,zsh-clipboard}: Remove dependency on Nix files
This commit is contained in:
Silvan Mosberger 2023-01-27 20:35:27 +01:00 committed by GitHub
commit 0346f6a9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -7,6 +7,16 @@ runCommand "documentation-highlighter" {
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.grahamc ];
};
src = lib.sources.cleanSourceWith {
src = ./.;
filter = path: type: lib.elem path (map toString [
./highlight.pack.js
./LICENSE
./loader.js
./mono-blue.css
./README.md
]);
};
} ''
cp -r ${./.} $out
cp -r "$src" "$out"
''

View File

@ -4,13 +4,12 @@ stdenv.mkDerivation rec {
pname = "zsh-clipboard";
version = "1.0";
src = ./.;
dontUnpack = true;
strictDeps = true;
dontBuild = true;
installPhase = ''
install -D -m0444 -t $out/share/zsh/plugins/clipboard ./clipboard.plugin.zsh
install -D -m0444 -T ${./clipboard.plugin.zsh} $out/share/zsh/plugins/clipboard/clipboard.plugin.zsh
'';
meta = with lib; {