mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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
@ -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 New Issue
Block a user