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:
commit
0346f6a9e3
2 changed files with 13 additions and 4 deletions
|
@ -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"
|
||||
''
|
||||
|
|
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue