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;
|
platforms = lib.platforms.all;
|
||||||
maintainers = [ lib.maintainers.grahamc ];
|
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";
|
pname = "zsh-clipboard";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
|
|
||||||
src = ./.;
|
dontUnpack = true;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
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; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user