mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
17 lines
505 B
Nix
17 lines
505 B
Nix
|
{ stdenv, vim }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "xxd-${version}";
|
||
|
inherit (vim) version;
|
||
|
phases = [ "installPhase" ];
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/{bin,share/man/man1}
|
||
|
install -m755 ${stdenv.lib.getBin vim}/bin/xxd $out/bin/xxd
|
||
|
install -m644 ${stdenv.lib.getBin vim}/share/man/man1/xxd.1.gz $out/share/man/man1/xxd.1.gz
|
||
|
'';
|
||
|
meta = with stdenv.lib; {
|
||
|
description = "Make a hexdump or do the reverse.";
|
||
|
inherit (vim.meta) homepage license maintainers platforms;
|
||
|
};
|
||
|
}
|