mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
28 lines
748 B
Nix
28 lines
748 B
Nix
{ stdenv, fetchFromGitHub, webos, cmake, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "novacom";
|
|
version = "18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openwebos";
|
|
repo = "novacom";
|
|
rev = "submissions/${version}";
|
|
sha256 = "12s6g7l20kakyjlhqpli496miv2kfsdp17lcwhdrzdxvxl6hnf4n";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig webos.cmake-modules ];
|
|
|
|
postInstall = ''
|
|
install -Dm755 -t $out/bin ../scripts/novaterm
|
|
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Utility for communicating with WebOS devices";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|